show backup days and hours

This commit is contained in:
Girish Ramakrishnan
2020-07-28 21:48:24 -07:00
parent 03bdcc786e
commit 692abcd6de
2 changed files with 64 additions and 18 deletions

View File

@@ -84,8 +84,17 @@
<p class="has-error text-center" ng-show="configureScheduleAndRetention.error">{{ configureScheduleAndRetention.error.generic }}</p>
<div class="form-group">
<label class="control-label" for="storageInterval">Backup Interval</label>
<select class="form-control" id="storageInterval" ng-model="configureScheduleAndRetention.intervalSecs" ng-options="a.value as a.name for a in intervalTimes"></select>
<label class="control-label">Backup Schedule</label>
<div class="row">
<div class="col-md-6">
Days: <multiselect class="input-sm stretch" ng-model="configureScheduleAndRetention.days" options="a.name for a in backupDays" data-multiple="true"></multiselect>
</div>
<div class="col-md-6">
Hours: <multiselect class="input-sm stretch" ng-model="configureScheduleAndRetention.hours" options="a.name for a in backupHours" data-multiple="true"></multiselect>
</div>
</div>
</div>
<div class="form-group">
@@ -343,10 +352,10 @@
<p>Cloudron makes a complete backup of your system based on this scheduled interval and keeps backups with the specified retention policy. </p>
<div class="row">
<div class="col-xs-6">
<span class="text-muted">Interval</span>
<span class="text-muted">Schedule</span>
</div>
<div class="col-xs-6 text-right">
<span>{{ prettyBackupInterval(backupConfig.intervalSecs) }}</span>
<span>{{ prettyBackupSchedule(backupConfig.schedulePattern) }}</span>
</div>
</div>
<div class="row">