2021-08-22 08:15:58 -04:00
|
|
|
@extends('layouts.simple')
|
2020-11-02 17:47:48 -05:00
|
|
|
|
|
|
|
@section('body')
|
|
|
|
<div class="container small">
|
|
|
|
|
2021-01-10 08:36:46 -05:00
|
|
|
<div class="py-m">
|
2021-08-22 08:15:58 -04:00
|
|
|
@include('settings.parts.navbar', ['selected' => 'maintenance'])
|
2020-11-02 17:47:48 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card content-wrap auto-height">
|
|
|
|
<h2 class="list-heading">{{ trans('settings.recycle_bin_restore') }}</h2>
|
|
|
|
<p class="text-muted">{{ trans('settings.recycle_bin_restore_confirm') }}</p>
|
2021-06-26 07:12:11 -04:00
|
|
|
<form action="{{ $deletion->getUrl('/restore') }}" method="post">
|
2020-11-02 17:47:48 -05:00
|
|
|
{!! csrf_field() !!}
|
|
|
|
<a href="{{ url('/settings/recycle-bin') }}" class="button outline">{{ trans('common.cancel') }}</a>
|
|
|
|
<button type="submit" class="button">{{ trans('settings.recycle_bin_restore') }}</button>
|
|
|
|
</form>
|
|
|
|
|
2020-11-21 19:17:45 -05:00
|
|
|
@if($deletion->deletable instanceof \BookStack\Entities\Models\Entity)
|
2020-11-02 17:47:48 -05:00
|
|
|
<hr class="mt-m">
|
|
|
|
<h5>{{ trans('settings.recycle_bin_restore_list') }}</h5>
|
2021-06-26 07:12:11 -04:00
|
|
|
<div class="flex-container-row mb-s items-center">
|
|
|
|
@if($deletion->deletable->getParent() && $deletion->deletable->getParent()->trashed())
|
|
|
|
<div class="text-neg flex">{{ trans('settings.recycle_bin_restore_deleted_parent') }}</div>
|
|
|
|
@endif
|
|
|
|
@if($parentDeletion)
|
|
|
|
<div class="flex fit-content ml-m">
|
|
|
|
<a class="button outline" href="{{ $parentDeletion->getUrl('/restore') }}">{{ trans('settings.recycle_bin_restore_parent') }}</a>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
2021-08-22 08:15:58 -04:00
|
|
|
@include('settings.recycle-bin.parts.deletable-entity-list', ['entity' => $deletion->deletable])
|
2020-11-02 17:47:48 -05:00
|
|
|
@endif
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
@stop
|