1
0
Fork 0

Update admin backup settings view

This commit is contained in:
Daniel Supernault 2019-02-10 17:14:54 -07:00
parent a680cdf79a
commit 973b8fc069
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 6 additions and 66 deletions

View File

@ -1,74 +1,14 @@
@extends('admin.partial.template') @extends('admin.partial.template')
@include('admin.settings.sidebar')
@section('section') @section('section')
<div class="title"> <div class="title">
<h3 class="font-weight-bold">Site Backups</h3> <h3 class="font-weight-bold">Site Backups</h3>
<p class="lead">Enable automatic backups, stored locally or S3/Spaces/Wasabi</p>
</div> </div>
<hr> <hr>
<div class="row"> <p class="alert alert-warning">
<div class="col-md-7"> <strong>Feature Unavailable:</strong> This feature will be released in v0.9.0.
<div class="card">
<div class="card-header bg-white font-weight-bold">Settings</div>
<div class="card-body">
<form>
<div class="form-group pt-3">
<label class="font-weight-bold text-muted small">Auto Backup Enabled</label>
<div class="switch switch-sm">
<input type="checkbox" class="switch" id="cw-switch" name="cw">
<label for="cw-switch" class="small font-weight-bold">(Default off)</label>
</div>
<small class="form-text text-muted">
Enable automated backups with your own strategy.
</small>
</div>
<div class="form-group pt-3">
<label class="font-weight-bold text-muted small">Frequency</label>
<select class="form-control">
<option>Hourly (1h)</option>
<option selected="">Nightly (24h)</option>
<option>Weekly (7d)</option>
<option>Monthly (1m)</option>
</select>
<small class="form-text text-muted">
Select the backup frequency.
</small>
</div>
<div class="form-group pt-3">
<label class="font-weight-bold text-muted small">Storage Filesystem</label>
<select class="form-control">
<option>Local</option>
<option disabled="">S3 (Not configured)</option>
</select>
<small class="form-text text-muted">
You can use local, S3, or any S3 compatible object storage API to store backups.
</small>
</div>
</form>
</div>
</div>
</div>
<div class="col-md-5">
<div class="card">
<div class="card-header bg-white font-weight-bold">Current Backups</div>
<div class="list-group list-group-flush">
@foreach($files as $file)
@if($file->isFile())
<li class="list-group-item pb-0">
<p class="font-weight-bold mb-0 text-truncate">{{$file->getFilename()}}</p>
<p class="mb-0 small text-muted font-weight-bold">
<span>
Size: {{App\Util\Lexer\PrettyNumber::convert($file->getSize())}}
</span>
<span class="float-right">
Created: {{\Carbon\Carbon::createFromTimestamp($file->getMTime())->diffForHumans()}}</p>
</span>
</p> </p>
</li>
@endif
@endforeach
</div>
</div>
</div>
</div>
@endsection @endsection