From 856b9294f8e5ab63d7307af1df69f26f98fc6450 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 10 Nov 2021 00:08:43 -0800 Subject: [PATCH] Improved BS tables on backups Signed-off-by: snipe --- resources/views/settings/backups.blade.php | 86 ++++++++++++++++------ 1 file changed, 64 insertions(+), 22 deletions(-) diff --git a/resources/views/settings/backups.blade.php b/resources/views/settings/backups.blade.php index 78537bb92e..fed72052ed 100644 --- a/resources/views/settings/backups.blade.php +++ b/resources/views/settings/backups.blade.php @@ -7,7 +7,15 @@ @stop @section('header_right') - {{ trans('general.back') }} + + {{ trans('general.back') }} + + +
+ {{ Form::hidden('_token', csrf_token()) }} + +
+ @stop {{-- Page content --}} @@ -15,10 +23,16 @@
+
+
+ + +
+ - - - + + + + + + @foreach ($files as $file) @@ -43,7 +60,8 @@ {{ $file['filename'] }} - + + @endforeach
FileCreatedSize
FileCreatedSize {{ trans('general.delete') }}
{{ date("M d, Y g:i A", $file['modified']) }} {{ $file['modified_display'] }} {{ $file['modified_value'] }} {{ $file['filesize'] }} @@ -53,38 +71,62 @@ {{ trans('general.delete') }} + + + + Restore + + @endcan
-
-
-
-
+
+ + + +
-
- {{ Form::hidden('_token', csrf_token()) }} + +

Backup files are located in: {{ $path }}

-

- -

+

Upload Backup

- @if (config('app.lock_passwords')) -

{{ trans('general.feature_disabled') }}

- @endif + +
+
+ + {{ Form::open([ + 'method' => 'POST', + 'route' => 'settings.backups.upload', + 'files' => true, + 'class' => 'form-horizontal' ]) }} + @csrf - -

Backup files are located in: {{ $path }}

+ + + + +

{{ trans_choice('general.filetypes_accepted_help', 3, ['size' => Helper::file_upload_max_size_readable(), 'types' => '.zip']) }}

+ {!! $errors->first('file', '') !!} + + {{ Form::close() }} + +
+
- -
- + + @stop