]> BookStack Code Mirror - bookstack/blobdiff - resources/views/chapters/edit.blade.php
Customization: Added parent tag classes
[bookstack] / resources / views / chapters / edit.blade.php
index 272543e67f9a6a6a8892c403fbf0af94fea9ddcc..36058eff83bb090428133cb1a13744f5e6fa7646 100644 (file)
@@ -1,13 +1,32 @@
-@extends('base')
+@extends('layouts.simple')
 
-@section('content')
+@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 class="container small" ng-non-bindable>
-        <h1>{{ trans('entities.chapters_edit') }}</h1>
-        <form action="{{  $chapter->getUrl() }}" method="POST">
-            <input type="hidden" name="_method" value="PUT">
-            @include('chapters/form', ['model' => $chapter])
-        </form>
     </div>
 
 @stop
\ No newline at end of file