]> BookStack Code Mirror - bookstack/blob - resources/views/books/sort.blade.php
Updated a batch of JS components
[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">
20                     <h1 class="list-heading mb-l">{{ trans('entities.books_sort') }}</h1>
21                     <div refs="book-sort@sortContainer">
22                         @include('books.parts.sort-box', ['book' => $book, 'bookChildren' => $bookChildren])
23                     </div>
24
25                     <form action="{{ $book->getUrl('/sort') }}" method="POST">
26                         {!! csrf_field() !!}
27                         <input type="hidden" name="_method" value="PUT">
28                         <input refs="book-sort@input" type="hidden" name="sort-tree">
29                         <div class="list text-right">
30                             <a href="{{ $book->getUrl() }}" class="button outline">{{ trans('common.cancel') }}</a>
31                             <button class="button" type="submit">{{ trans('entities.books_sort_save') }}</button>
32                         </div>
33                     </form>
34                 </div>
35             </div>
36
37             <div>
38                 <main class="card content-wrap">
39                     <h2 class="list-heading mb-m">{{ trans('entities.books_sort_show_other') }}</h2>
40
41                     @include('entities.selector', ['name' => 'books_list', 'selectorSize' => 'compact', 'entityTypes' => 'book', 'entityPermission' => 'update', 'showAdd' => true])
42
43                 </main>
44             </div>
45         </div>
46
47     </div>
48
49 @stop