]> BookStack Code Mirror - bookstack/blob - resources/views/chapters/copy.blade.php
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / resources / views / chapters / copy.blade.php
1 @extends('layouts.simple')
2
3 @section('body')
4
5     <div class="container small">
6
7         <div class="my-s">
8             @include('entities.breadcrumbs', ['crumbs' => [
9                 $chapter->book,
10                 $chapter,
11                 $chapter->getUrl('/copy') => [
12                     'text' => trans('entities.chapters_copy'),
13                     'icon' => 'copy',
14                 ]
15             ]])
16         </div>
17
18         <div class="card content-wrap auto-height">
19
20             <h1 class="list-heading">{{ trans('entities.chapters_copy') }}</h1>
21
22             <form action="{{ $chapter->getUrl('/copy') }}" method="POST">
23                 {!! csrf_field() !!}
24
25                 <div class="form-group title-input">
26                     <label for="name">{{ trans('common.name') }}</label>
27                     @include('form.text', ['name' => 'name'])
28                 </div>
29
30                 <div class="form-group" collapsible>
31                     <button type="button" class="collapse-title text-link" collapsible-trigger aria-expanded="false">
32                         <label for="entity_selection">{{ trans('entities.pages_copy_desination') }}</label>
33                     </button>
34                     <div class="collapse-content" collapsible-content>
35                         @include('entities.selector', ['name' => 'entity_selection', 'selectorSize' => 'large', 'entityTypes' => 'book', 'entityPermission' => 'chapter-create'])
36                     </div>
37                 </div>
38
39                 @include('entities.copy-considerations')
40
41                 <div class="form-group text-right">
42                     <a href="{{ $chapter->getUrl() }}" class="button outline">{{ trans('common.cancel') }}</a>
43                     <button type="submit" class="button">{{ trans('entities.chapters_copy') }}</button>
44                 </div>
45             </form>
46
47         </div>
48     </div>
49
50 @stop