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

32 lines
955 B
PHP
Raw Normal View History

@extends('layouts.simple')
2017-08-26 15:36:48 +02:00
@section('body')
<div class="container small">
2019-01-31 21:37:12 +01:00
<div class="my-s">
@include('entities.breadcrumbs', ['crumbs' => [
2019-01-31 21:37:12 +01:00
$book,
$chapter,
$chapter->getUrl('/edit') => [
'text' => trans('entities.chapters_edit'),
'icon' => 'edit'
]
2019-01-31 21:37:12 +01:00
]])
2017-08-26 15:36:48 +02:00
</div>
2019-01-31 21:37:12 +01:00
<main class="content-wrap card auto-height">
2019-01-31 21:37:12 +01:00
<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])
2019-01-31 21:37:12 +01:00
</form>
</main>
2019-01-31 21:37:12 +01:00
@if(userCan('chapter-delete', $chapter) && userCan('book-create-all'))
@include('chapters.parts.convert-to-book')
@endif
</div>
@stop