BookStack/resources/views/books/edit.blade.php

33 lines
1.1 KiB
PHP
Raw Normal View History

@extends('layouts.simple')
2015-07-13 03:01:42 +08:00
@section('body')
<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">
2022-12-03 01:41:59 +08:00
@include('books.parts.form', [
'model' => $book,
2022-12-03 01:41:59 +08:00
'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
2015-07-16 05:55:49 +08:00
</div>
2015-07-13 03:01:42 +08:00
@stop