]> BookStack Code Mirror - bookstack/blobdiff - resources/views/books/edit.blade.php
added routes for zip export
[bookstack] / resources / views / books / edit.blade.php
index e1162d4b4c9364e0c6cc6cc3bde0ebaf555c63be..6efd1caea9249447152c59d2062c54ea5adb1e36 100644 (file)
@@ -1,24 +1,33 @@
-@extends('simple-layout')
+@extends('layouts.simple')
 
 @section('body')
 
     <div class="container small">
 
-        <div class="my-l">
-            @include('partials.breadcrumbs', ['crumbs' => [
+        <div class="my-s">
+            @include('entities.breadcrumbs', ['crumbs' => [
                 $book,
-                $book->getUrl('/edit') => trans('entities.books_edit')
+                $book->getUrl('/edit') => [
+                    'text' => trans('entities.books_edit'),
+                    'icon' => 'edit',
+                ]
             ]])
         </div>
 
-        <div class="content-wrap card">
+        <main class="content-wrap card auto-height">
             <h1 class="list-heading">{{ trans('entities.books_edit') }}</h1>
-            <form action="{{ $book->getUrl() }}" method="POST">
+            <form action="{{ $book->getUrl() }}" method="POST" enctype="multipart/form-data">
                 <input type="hidden" name="_method" value="PUT">
-                @include('books/form', ['model' => $book])
+                @include('books.parts.form', [
+                    'model' => $book,
+                    'returnLocation' => $book->getUrl()
+                ])
             </form>
-        </div>
-    </div>
+        </main>
 
-    @include('components.image-manager', ['imageType' => 'cover'])
+
+        @if(userCan('book-delete', $book) && userCan('book-create-all') && userCan('bookshelf-create-all'))
+            @include('books.parts.convert-to-shelf', ['book' => $book])
+        @endif
+    </div>
 @stop
\ No newline at end of file