]> BookStack Code Mirror - bookstack/blob - resources/views/settings/categories/sorting.blade.php
153ea0e3b0b25875f03b7480f37954c160c77420
[bookstack] / resources / views / settings / categories / sorting.blade.php
1 @extends('settings.layout')
2
3 @section('card')
4     <h1 id="sorting" class="list-heading">{{ trans('settings.sorting') }}</h1>
5     <form action="{{ url("/settings/sorting") }}" method="POST">
6         {{ csrf_field() }}
7         <input type="hidden" name="section" value="sorting">
8
9         <div class="setting-list">
10             <div class="grid half gap-xl items-center">
11                 <div>
12                     <label for="setting-sorting-book-default"
13                            class="setting-list-label">{{ trans('settings.sorting_book_default') }}</label>
14                     <p class="small">{{ trans('settings.sorting_book_default_desc') }}</p>
15                 </div>
16                 <div>
17                     <select id="setting-sorting-book-default" name="setting-sorting-book-default"
18                             @if($errors->has('setting-sorting-book-default')) class="neg" @endif>
19                         <option value="0" @if(intval(setting('sorting-book-default', '0')) === 0) selected @endif>
20                             -- {{ trans('common.none') }} --
21                         </option>
22 {{--                        TODO--}}
23 {{--                        @foreach(\BookStack\Users\Models\Role::all() as $role)--}}
24 {{--                            <option value="{{$role->id}}"--}}
25 {{--                                    data-system-role-name="{{ $role->system_name ?? '' }}"--}}
26 {{--                                    @if(intval(setting('registration-role', '0')) === $role->id) selected @endif--}}
27 {{--                            >--}}
28 {{--                                {{ $role->display_name }}--}}
29 {{--                            </option>--}}
30 {{--                        @endforeach--}}
31                     </select>
32                 </div>
33             </div>
34
35         </div>
36
37         <div class="form-group text-right">
38             <button type="submit" class="button">{{ trans('settings.settings_save') }}</button>
39         </div>
40     </form>
41 @endsection
42
43 @section('after-card')
44     <div class="card content-wrap auto-height">
45         <h2 class="list-heading">{{ trans('settings.sorting_sets') }}</h2>
46         <p class="text-muted">{{ trans('settings.sorting_sets_desc') }}</p>
47 {{--        TODO--}}
48     </div>
49 @endsection