Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dan Brown
2015-10-22 19:06:50 +0100
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
d7520f224c2ac416975c554670eb6311a4fbb02c
d7520f22
1 parent
eafdeea9
Fixed book sort and added leave page warning to page editor. Fixes #22 and closes #21
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
resources/assets/js/pages/page-form.js
resources/views/books/sort.blade.php
resources/views/pages/form.blade.php
resources/assets/js/pages/page-form.js
View file @
d7520f2
...
...
@@ -14,7 +14,7 @@ module.exports = {
extended_valid_elements
:
'pre[*]'
,
automatic_uploads
:
false
,
valid_children
:
"-div[p|pre|h1|h2|h3|h4|h5|h6|blockquote]"
,
plugins
:
"image table textcolor paste link fullscreen imagetools code hr"
,
plugins
:
"image table textcolor paste link fullscreen imagetools code hr
autosave
"
,
imagetools_toolbar
:
'imageoptions'
,
toolbar
:
"undo redo | styleselect | bold italic underline strikethrough superscript subscript | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table image-insert link hr | removeformat code fullscreen"
,
content_style
:
"body {padding-left: 15px !important; padding-right: 15px !important; margin:0!important; margin-left:auto!important;margin-right:auto!important;}"
,
...
...
resources/views/books/sort.blade.php
View file @
d7520f2
...
...
@@ -14,13 +14,15 @@
@if(count($books) > 1)
<div
class=
"col-md-4"
>
<h3>
Show Other Books
</h3>
<div
id=
"additional-books"
>
@foreach($books as $otherBook)
@if($otherBook->id !== $book->id)
<div
id=
"additional-books"
>
<div>
<a
href=
"/books/{{ $otherBook->slug }}/sort-item"
class=
"text-book"
><i
class=
"zmdi zmdi-book"
></i>
{{ $otherBook->name }}
</a>
</div>
@endif
@endforeach
</div>
</div>
@endif
...
...
resources/views/pages/form.blade.php
View file @
d7520f2
...
...
@@ -15,7 +15,7 @@
<div
class=
"col-md-8 faded"
>
<div
class=
"action-buttons"
>
<a
href=
"{{ back()->getTargetUrl() }}"
class=
"text-button text-primary"
><i
class=
"zmdi zmdi-close"
></i>
Cancel
</a>
<button
type=
"submit"
class=
"text-button text-pos"
><i
class=
"zmdi zmdi-floppy"
></i>
Save Page
</button>
<button
type=
"submit"
id=
"save-button"
class=
"text-button text-pos"
><i
class=
"zmdi zmdi-floppy"
></i>
Save Page
</button>
</div>
</div>
</div>
...
...
@@ -34,4 +34,4 @@
<div
class=
"text-neg text-small"
>
{{ $errors->first('html') }}
</div>
@endif
</div>
</div>
</div>
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment