mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 14:26:16 +01:00
restoreremotebackupupdate
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
<input name="Hostname" type="text" class="form-control" ng-model="ScheduleName"
|
||||
required>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<span style="display: none" id="RemoteConfigID"> {{ RemoteConfigID }}</span>
|
||||
|
||||
@@ -86,6 +87,10 @@
|
||||
<tr>
|
||||
<th style="padding: 18px; color: white; width: 161px; font-size: 12px;">ID</th>
|
||||
<th style="padding: 18px; color: white; width: 161px; font-size: 12px;">Schedule Name</th>
|
||||
<th style="padding: 18px; color: white; width: 161px; font-size: 12px;">Backup Frequency</th>
|
||||
<th style="padding: 18px; color: white; width: 161px; font-size: 12px;">Backup File Retention
|
||||
</th>
|
||||
<th style="padding: 18px; color: white; width: 161px; font-size: 12px;">Last Run</th>
|
||||
<th style="padding: 18px; color: white; width: 161px; font-size: 12px;">Remote Configuration
|
||||
</th>
|
||||
<th style="padding: 18px; color: white; width: 161px; font-size: 12px;">Action</th>
|
||||
@@ -97,6 +102,9 @@
|
||||
<tr>
|
||||
<td style="padding: 13px;">{{ sub.id }}</td>
|
||||
<td style="padding: 13px;">{{ sub.Name }}</td>
|
||||
<td style="padding: 13px;">{{ sub.Frequency }}</td>
|
||||
<td style="padding: 13px;">{{ sub.Retention }}</td>
|
||||
<td style="padding: 13px;">{{ sub.LastRun }}</td>
|
||||
<td style="padding: 13px;">{{ sub.RemoteConfiguration }}</td>
|
||||
<td style="padding: 13px;">
|
||||
<button
|
||||
@@ -105,9 +113,14 @@
|
||||
type="button" class="btn btn-border btn-alt border-red btn-link font-red">
|
||||
Delete
|
||||
</button>
|
||||
<button ng-click="getupdateid({{ sub.id }})" data-toggle="modal" data-target="#EidtRemoteShedule"
|
||||
aria-label=""
|
||||
type="button" class="btn btn-border btn-alt border-yellow btn-link font-yellow">
|
||||
Eidt
|
||||
</button>
|
||||
<a href="{% url 'AddRemoteBackupsite' %}?ID={{ sub.id }}"
|
||||
aria-label=""
|
||||
|
||||
style="margin-top: 5px;"
|
||||
type="button" class="btn btn-border btn-alt border-green btn-link font-green">
|
||||
Add WordPress Sites
|
||||
</a>
|
||||
@@ -117,6 +130,68 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div id="EidtRemoteShedule" class="modal fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Update Remote Backup Schedules
|
||||
<img id="containerSettingLoading" src="/static/images/loading.gif"
|
||||
style="display: none;">
|
||||
</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
<form name="containerSettingsForm" action="/" class="form-horizontal">
|
||||
<div ng-hide="installationDetailsForm" class="form-group">
|
||||
<label class="col-sm-3 control-label">{% trans "Backup Frequency" %}</label>
|
||||
<div class="col-sm-6">
|
||||
|
||||
<select ng-model="RemoteFrequency"
|
||||
class="form-control">
|
||||
<option>30 Minutes</option>
|
||||
<option>1 Hour</option>
|
||||
<option>6 Hours</option>
|
||||
<option>12 Hours</option>
|
||||
<option>1 Day</option>
|
||||
<option>3 Days</option>
|
||||
<option>1 Week</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div ng-hide="installationDetailsForm" class="form-group">
|
||||
<label class="col-sm-3 control-label">{% trans "Backup File Retention" %}</label>
|
||||
<div class="col-sm-6">
|
||||
<select ng-model="RemoteFileretention"
|
||||
class="form-control">
|
||||
<option>3 Days</option>
|
||||
<option>1 Week</option>
|
||||
<option>3 Weeks</option>
|
||||
<option>1 Month</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" ng-disabled="savingSettings" class="btn btn-primary"
|
||||
ng-click="UpdateRemoteschedules()">Save
|
||||
</button>
|
||||
<button type="button" ng-disabled="savingSettings" class="btn btn-default"
|
||||
data-dismiss="modal">
|
||||
Close
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user