mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-27 12:41:58 +00:00
![Dan Brown](/assets/img/avatar_default.png)
- Also extracted shelf to book view elements to own partial. - Fixed some existing logic including image param handling in update request and activity logging against correct element.
32 lines
955 B
PHP
32 lines
955 B
PHP
@extends('layouts.simple')
|
|
|
|
@section('body')
|
|
|
|
<div class="container small">
|
|
|
|
<div class="my-s">
|
|
@include('entities.breadcrumbs', ['crumbs' => [
|
|
$book,
|
|
$chapter,
|
|
$chapter->getUrl('/edit') => [
|
|
'text' => trans('entities.chapters_edit'),
|
|
'icon' => 'edit'
|
|
]
|
|
]])
|
|
</div>
|
|
|
|
<main class="content-wrap card auto-height">
|
|
<h1 class="list-heading">{{ trans('entities.chapters_edit') }}</h1>
|
|
<form action="{{ $chapter->getUrl() }}" method="POST">
|
|
<input type="hidden" name="_method" value="PUT">
|
|
@include('chapters.parts.form', ['model' => $chapter])
|
|
</form>
|
|
</main>
|
|
|
|
@if(userCan('chapter-delete', $chapter) && userCan('book-create-all'))
|
|
@include('chapters.parts.convert-to-book')
|
|
@endif
|
|
|
|
</div>
|
|
|
|
@stop |