-@extends('simple-layout')
-
-@section('toolbar')
- <div class="col-sm-12 faded">
- @include('books._breadcrumbs', ['book' => $book])
- </div>
-@stop
+@extends('layouts.simple')
@section('body')
- <div class="container small" ng-non-bindable>
- <p> </p>
- <div class="card">
- <h3><i class="zmdi zmdi-edit"></i> {{ trans('entities.books_edit') }}</h3>
- <div class="body">
- <form action="{{ $book->getUrl() }}" method="POST">
- <input type="hidden" name="_method" value="PUT">
- @include('books/form', ['model' => $book])
- </form>
- </div>
+ <div class="container small">
+
+ <div class="my-s">
+ @include('entities.breadcrumbs', ['crumbs' => [
+ $book,
+ $book->getUrl('/edit') => [
+ 'text' => trans('entities.books_edit'),
+ 'icon' => 'edit',
+ ]
+ ]])
</div>
+
+ <main class="content-wrap card auto-height">
+ <h1 class="list-heading">{{ trans('entities.books_edit') }}</h1>
+ <form action="{{ $book->getUrl() }}" method="POST" enctype="multipart/form-data">
+ <input type="hidden" name="_method" value="PUT">
+ @include('books.parts.form', [
+ 'model' => $book,
+ 'returnLocation' => $book->getUrl()
+ ])
+ </form>
+ </main>
+
+
+ @if(userCan('book-delete', $book) && userCan('book-create-all') && userCan('bookshelf-create-all'))
+ @include('books.parts.convert-to-shelf', ['book' => $book])
+ @endif
</div>
-@include('components.image-manager', ['imageType' => 'cover'])
@stop
\ No newline at end of file