]> BookStack Code Mirror - bookstack/blob - resources/views/books/sort.blade.php
c82ad4e3b1e7f7cec7f2ffdbcecd9e7b6b49ea23
[bookstack] / resources / views / books / sort.blade.php
1 @extends('layouts.simple')
2
3 @section('body')
4
5     <div class="container">
6
7         <div class="my-s">
8             @include('entities.breadcrumbs', ['crumbs' => [
9                 $book,
10                 $book->getUrl('/sort') => [
11                     'text' => trans('entities.books_sort'),
12                     'icon' => 'sort',
13                 ]
14             ]])
15         </div>
16
17         <div class="grid left-focus gap-xl">
18             <div>
19                 <div component="book-sort" class="card content-wrap auto-height">
20                     <h1 class="list-heading">{{ trans('entities.books_sort') }}</h1>
21                     <p class="text-muted">{{ trans('entities.books_sort_desc') }}</p>
22
23                     <div refs="book-sort@sortContainer">
24                         @include('books.parts.sort-box', ['book' => $book, 'bookChildren' => $bookChildren])
25                     </div>
26
27                     <form action="{{ $book->getUrl('/sort') }}" method="POST">
28                         {!! csrf_field() !!}
29                         <input type="hidden" name="_method" value="PUT">
30                         <input refs="book-sort@input" type="hidden" name="sort-tree">
31                         <div class="list text-right">
32                             <a href="{{ $book->getUrl() }}" class="button outline">{{ trans('common.cancel') }}</a>
33                             <button class="button" type="submit">{{ trans('entities.books_sort_save') }}</button>
34                         </div>
35                     </form>
36                 </div>
37             </div>
38
39             <div>
40                 <main class="card content-wrap auto-height sticky-top-m">
41                     <h2 class="list-heading">{{ trans('entities.books_sort_show_other') }}</h2>
42                     <p class="text-muted">{{ trans('entities.books_sort_show_other_desc') }}</p>
43
44                     @include('entities.selector', ['name' => 'books_list', 'selectorSize' => 'compact', 'entityTypes' => 'book', 'entityPermission' => 'update'])
45
46                 </main>
47             </div>
48         </div>
49
50     </div>
51
52 @stop