]> BookStack Code Mirror - bookstack/blob - resources/views/settings/recycle-bin/restore.blade.php
Started playing with new settings view layout
[bookstack] / resources / views / settings / recycle-bin / restore.blade.php
1 @extends('layouts.simple')
2
3 @section('body')
4     <div class="container small">
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_restore') }}</h2>
10             <p class="text-muted">{{ trans('settings.recycle_bin_restore_confirm') }}</p>
11             <form action="{{ $deletion->getUrl('/restore') }}" method="post">
12                 {!! csrf_field() !!}
13                 <a href="{{ url('/settings/recycle-bin') }}" class="button outline">{{ trans('common.cancel') }}</a>
14                 <button type="submit" class="button">{{ trans('settings.recycle_bin_restore') }}</button>
15             </form>
16
17             @if($deletion->deletable instanceof \BookStack\Entities\Models\Entity)
18                 <hr class="mt-m">
19                 <h5>{{ trans('settings.recycle_bin_restore_list') }}</h5>
20                 <div class="flex-container-row mb-s items-center">
21                     @if($deletion->deletable->getParent() && $deletion->deletable->getParent()->trashed())
22                         <div class="text-neg flex">{{ trans('settings.recycle_bin_restore_deleted_parent') }}</div>
23                     @endif
24                     @if($parentDeletion)
25                         <div class="flex fit-content ml-m">
26                             <a class="button outline" href="{{ $parentDeletion->getUrl('/restore') }}">{{ trans('settings.recycle_bin_restore_parent') }}</a>
27                         </div>
28                     @endif
29                 </div>
30
31                 @include('settings.recycle-bin.parts.deletable-entity-list', ['entity' => $deletion->deletable])
32             @endif
33
34         </div>
35
36     </div>
37 @stop