]> BookStack Code Mirror - bookstack/blob - resources/views/settings/recycle-bin/index.blade.php
respective book and chapter structure added.
[bookstack] / resources / views / settings / recycle-bin / index.blade.php
1 @extends('layouts.simple')
2
3 @section('body')
4     <div class="container">
5
6         @include('settings.parts.navbar', ['selected' => 'maintenance'])
7
8         <div class="card content-wrap auto-height">
9             <h2 class="list-heading">{{ trans('settings.recycle_bin') }}</h2>
10
11             <div class="flex-container-row items-center gap-x-l gap-y-m wrap">
12                 <div class="flex-2 min-width-l">
13                     <p class="text-muted mb-none">{{ trans('settings.recycle_bin_desc') }}</p>
14                 </div>
15                 <div class="flex text-m-right min-width-m">
16                     <div component="dropdown" class="dropdown-container">
17                         <button refs="dropdown@toggle"
18                                 type="button"
19                                 class="button outline">{{ trans('settings.recycle_bin_empty') }} </button>
20                         <div refs="dropdown@menu" class="dropdown-menu">
21                             <p class="text-neg small px-m mb-xs">{{ trans('settings.recycle_bin_empty_confirm') }}</p>
22
23                             <form action="{{ url('/settings/recycle-bin/empty') }}" method="POST">
24                                 {!! csrf_field() !!}
25                                 <button type="submit" class="text-link small delete text-item">{{ trans('common.confirm') }}</button>
26                             </form>
27                         </div>
28                     </div>
29
30                 </div>
31             </div>
32
33             <hr class="mt-l mb-s">
34
35             <div class="py-m">
36                 {!! $deletions->links() !!}
37             </div>
38
39             <div class="item-list">
40                 <div class="item-list-row flex-container-row items-center px-s bold hide-under-l">
41                     <div class="flex-2 px-m py-xs">{{ trans('settings.audit_deleted_item') }}</div>
42                     <div class="flex-2 px-m py-xs">{{ trans('settings.recycle_bin_deleted_parent') }}</div>
43                     <div class="flex-2 px-m py-xs">{{ trans('settings.recycle_bin_deleted_by') }}</div>
44                     <div class="flex px-m py-xs">{{ trans('settings.recycle_bin_deleted_at') }}</div>
45                     <div class="flex px-m py-xs text-right"></div>
46                 </div>
47                 @if(count($deletions) === 0)
48                     <div class="item-list-row px-l py-m">
49                         <p class="text-muted mb-none"><em>{{ trans('settings.recycle_bin_contents_empty') }}</em></p>
50                     </div>
51                 @endif
52                 @foreach($deletions as $deletion)
53                     @include('settings.recycle-bin.parts.recycle-bin-list-item', ['deletion' => $deletion])
54                 @endforeach
55             </div>
56
57             <div class="py-m">
58                 {!! $deletions->links() !!}
59             </div>
60
61         </div>
62
63     </div>
64 @stop