]> BookStack Code Mirror - bookstack/blob - resources/views/settings/recycle-bin/restore.blade.php
Code cleanup, bug squashing
[bookstack] / resources / views / settings / recycle-bin / restore.blade.php
1 @extends('simple-layout')
2
3 @section('body')
4     <div class="container small">
5
6         <div class="grid left-focus v-center no-row-gap">
7             <div class="py-m">
8                 @include('settings.navbar', ['selected' => 'maintenance'])
9             </div>
10         </div>
11
12         <div class="card content-wrap auto-height">
13             <h2 class="list-heading">{{ trans('settings.recycle_bin_restore') }}</h2>
14             <p class="text-muted">{{ trans('settings.recycle_bin_restore_confirm') }}</p>
15             <form action="{{ url('/settings/recycle-bin/' . $deletion->id . '/restore') }}" method="post">
16                 {!! csrf_field() !!}
17                 <a href="{{ url('/settings/recycle-bin') }}" class="button outline">{{ trans('common.cancel') }}</a>
18                 <button type="submit" class="button">{{ trans('settings.recycle_bin_restore') }}</button>
19             </form>
20
21             @if($deletion->deletable instanceof \BookStack\Entities\Models\Entity)
22                 <hr class="mt-m">
23                 <h5>{{ trans('settings.recycle_bin_restore_list') }}</h5>
24                 @if($deletion->deletable->getParent() && $deletion->deletable->getParent()->trashed())
25                     <p class="text-neg">{{ trans('settings.recycle_bin_restore_deleted_parent') }}</p>
26                 @endif
27                 @include('settings.recycle-bin.deletable-entity-list', ['entity' => $deletion->deletable])
28             @endif
29
30         </div>
31
32     </div>
33 @stop