]> BookStack Code Mirror - bookstack/blob - resources/views/books/edit.blade.php
Merge pull request #5668 from bumperbox/patch-1
[bookstack] / resources / views / books / edit.blade.php
1 @extends('layouts.simple')
2
3 @section('body')
4
5     <div class="container small">
6
7         <div class="my-s">
8             @include('entities.breadcrumbs', ['crumbs' => [
9                 $book,
10                 $book->getUrl('/edit') => [
11                     'text' => trans('entities.books_edit'),
12                     'icon' => 'edit',
13                 ]
14             ]])
15         </div>
16
17         <main class="content-wrap card auto-height">
18             <h1 class="list-heading">{{ trans('entities.books_edit') }}</h1>
19             <form action="{{ $book->getUrl() }}" method="POST" enctype="multipart/form-data">
20                 <input type="hidden" name="_method" value="PUT">
21                 @include('books.parts.form', [
22                     'model' => $book,
23                     'returnLocation' => $book->getUrl()
24                 ])
25             </form>
26         </main>
27
28
29         @if(userCan('book-delete', $book) && userCan('book-create-all') && userCan('bookshelf-create-all'))
30             @include('books.parts.convert-to-shelf', ['book' => $book])
31         @endif
32     </div>
33 @stop
Morty Proxy This is a proxified and sanitized view of the page, visit original site.