Update admin backup settings view

pull/780/head
Daniel Supernault 2019-02-10 17:14:54 -07:00
rodzic a680cdf79a
commit 973b8fc069
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 6 dodań i 66 usunięć

Wyświetl plik

@ -1,74 +1,14 @@
@extends('admin.partial.template')
@include('admin.settings.sidebar')
@section('section')
<div class="title">
<h3 class="font-weight-bold">Site Backups</h3>
<p class="lead">Enable automatic backups, stored locally or S3/Spaces/Wasabi</p>
</div>
<hr>
<div class="row">
<div class="col-md-7">
<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>
</li>
@endif
@endforeach
</div>
</div>
</div>
</div>
<p class="alert alert-warning">
<strong>Feature Unavailable:</strong> This feature will be released in v0.9.0.
</p>
@endsection