Dan Brown

Fixed book sort and added leave page warning to page editor. Fixes #22 and closes #21

...@@ -14,7 +14,7 @@ module.exports = { ...@@ -14,7 +14,7 @@ module.exports = {
14 extended_valid_elements: 'pre[*]', 14 extended_valid_elements: 'pre[*]',
15 automatic_uploads: false, 15 automatic_uploads: false,
16 valid_children: "-div[p|pre|h1|h2|h3|h4|h5|h6|blockquote]", 16 valid_children: "-div[p|pre|h1|h2|h3|h4|h5|h6|blockquote]",
17 - plugins: "image table textcolor paste link fullscreen imagetools code hr", 17 + plugins: "image table textcolor paste link fullscreen imagetools code hr autosave",
18 imagetools_toolbar: 'imageoptions', 18 imagetools_toolbar: 'imageoptions',
19 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", 19 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",
20 content_style: "body {padding-left: 15px !important; padding-right: 15px !important; margin:0!important; margin-left:auto!important;margin-right:auto!important;}", 20 content_style: "body {padding-left: 15px !important; padding-right: 15px !important; margin:0!important; margin-left:auto!important;margin-right:auto!important;}",
......
...@@ -14,13 +14,15 @@ ...@@ -14,13 +14,15 @@
14 @if(count($books) > 1) 14 @if(count($books) > 1)
15 <div class="col-md-4"> 15 <div class="col-md-4">
16 <h3>Show Other Books</h3> 16 <h3>Show Other Books</h3>
17 + <div id="additional-books">
17 @foreach($books as $otherBook) 18 @foreach($books as $otherBook)
18 @if($otherBook->id !== $book->id) 19 @if($otherBook->id !== $book->id)
19 - <div id="additional-books"> 20 + <div>
20 <a href="/books/{{ $otherBook->slug }}/sort-item" class="text-book"><i class="zmdi zmdi-book"></i>{{ $otherBook->name }}</a> 21 <a href="/books/{{ $otherBook->slug }}/sort-item" class="text-book"><i class="zmdi zmdi-book"></i>{{ $otherBook->name }}</a>
21 </div> 22 </div>
22 @endif 23 @endif
23 @endforeach 24 @endforeach
25 + </div>
24 </div> 26 </div>
25 @endif 27 @endif
26 28
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
15 <div class="col-md-8 faded"> 15 <div class="col-md-8 faded">
16 <div class="action-buttons"> 16 <div class="action-buttons">
17 <a href="{{ back()->getTargetUrl() }}" class="text-button text-primary"><i class="zmdi zmdi-close"></i>Cancel</a> 17 <a href="{{ back()->getTargetUrl() }}" class="text-button text-primary"><i class="zmdi zmdi-close"></i>Cancel</a>
18 - <button type="submit" class="text-button text-pos"><i class="zmdi zmdi-floppy"></i>Save Page</button> 18 + <button type="submit" id="save-button" class="text-button text-pos"><i class="zmdi zmdi-floppy"></i>Save Page</button>
19 </div> 19 </div>
20 </div> 20 </div>
21 </div> 21 </div>
...@@ -34,4 +34,4 @@ ...@@ -34,4 +34,4 @@
34 <div class="text-neg text-small">{{ $errors->first('html') }}</div> 34 <div class="text-neg text-small">{{ $errors->first('html') }}</div>
35 @endif 35 @endif
36 </div> 36 </div>
37 -</div> 37 +</div>
...\ No newline at end of file ...\ No newline at end of file
......