]> BookStack Code Mirror - bookstack/blob - resources/views/users/preferences/shortcuts.blade.php
Extracted shortcut text to language files
[bookstack] / resources / views / users / preferences / shortcuts.blade.php
1 @extends('layouts.simple')
2
3 @section('body')
4     <div class="container small my-xl">
5
6         <section class="card content-wrap">
7             <form action="{{ url('/preferences/shortcuts') }}" method="post">
8                 {{ method_field('put') }}
9                 {{ csrf_field() }}
10
11                 <h1 class="list-heading">{{ trans('preferences.shortcuts_interface') }}</h1>
12
13                 <div class="flex-container-row items-center gap-m wrap mb-m">
14                     <p class="flex mb-none min-width-m text-small text-muted">
15                         {{ trans('preferences.shortcuts_toggle_desc') }}
16                         {{ trans('preferences.shortcuts_customize_desc') }}
17                     </p>
18                     <div class="flex min-width-m text-m-center">
19                         @include('form.toggle-switch', [
20                             'name' => 'enabled',
21                             'value' => $enabled,
22                             'label' => trans('preferences.shortcuts_toggle_label'),
23                         ])
24                     </div>
25                 </div>
26
27                 <hr>
28
29                 <h2 class="list-heading mb-m">{{ trans('preferences.shortcuts_section_navigation') }}</h2>
30                 <div class="flex-container-row wrap gap-m mb-xl">
31                     <div class="flex min-width-l item-list">
32                         @include('users.preferences.parts.shortcut-control', ['label' => trans('common.homepage'), 'id' => 'home_view'])
33                         @include('users.preferences.parts.shortcut-control', ['label' => trans('entities.shelves'), 'id' => 'shelves_view'])
34                         @include('users.preferences.parts.shortcut-control', ['label' => trans('entities.books'), 'id' => 'books_view'])
35                         @include('users.preferences.parts.shortcut-control', ['label' => trans('settings.settings'), 'id' => 'settings_view'])
36                         @include('users.preferences.parts.shortcut-control', ['label' => trans('entities.my_favourites'), 'id' => 'favourites_view'])
37                     </div>
38                     <div class="flex min-width-l item-list">
39                         @include('users.preferences.parts.shortcut-control', ['label' => trans('common.view_profile'), 'id' => 'profile_view'])
40                         @include('users.preferences.parts.shortcut-control', ['label' => trans('auth.logout'), 'id' => 'logout'])
41                         @include('users.preferences.parts.shortcut-control', ['label' => trans('common.global_search'), 'id' => 'global_search'])
42                         @include('users.preferences.parts.shortcut-control', ['label' => trans('common.next'), 'id' => 'next'])
43                         @include('users.preferences.parts.shortcut-control', ['label' => trans('common.previous'), 'id' => 'previous'])
44                     </div>
45                 </div>
46
47                 <h2 class="list-heading mb-m">{{ trans('preferences.shortcuts_section_actions') }}</h2>
48                 <div class="flex-container-row wrap gap-m mb-xl">
49                     <div class="flex min-width-l item-list">
50                         @include('users.preferences.parts.shortcut-control', ['label' => trans('common.new'), 'id' => 'new'])
51                         @include('users.preferences.parts.shortcut-control', ['label' => trans('common.edit'), 'id' => 'edit'])
52                         @include('users.preferences.parts.shortcut-control', ['label' => trans('common.copy'), 'id' => 'copy'])
53                         @include('users.preferences.parts.shortcut-control', ['label' => trans('common.delete'), 'id' => 'delete'])
54                         @include('users.preferences.parts.shortcut-control', ['label' => trans('common.favourite'), 'id' => 'favourite'])
55                     </div>
56                     <div class="flex min-width-l item-list">
57                         @include('users.preferences.parts.shortcut-control', ['label' => trans('entities.export'), 'id' => 'export'])
58                         @include('users.preferences.parts.shortcut-control', ['label' => trans('common.sort'), 'id' => 'sort'])
59                         @include('users.preferences.parts.shortcut-control', ['label' => trans('entities.permissions'), 'id' => 'permissions'])
60                         @include('users.preferences.parts.shortcut-control', ['label' => trans('common.move'), 'id' => 'move'])
61                         @include('users.preferences.parts.shortcut-control', ['label' => trans('entities.revisions'), 'id' => 'revisions'])
62                     </div>
63                 </div>
64
65                 <p class="text-small text-muted">{{ trans('preferences.shortcuts_overlay_desc') }}</p>
66
67                 <div class="form-group text-right">
68                     <button class="button">{{ trans('preferences.shortcuts_save') }}</button>
69                 </div>
70
71             </form>
72         </section>
73
74     </div>
75 @stop