Current File : //proc/self/root/usr/local/jetapps/var/www/jetbackup5/docroot/app/views_enduser/restore/files.htm |
<div ng-controller="restore_files_enduser">
<div class="row search-page-container">
<div class="col-xs-12 col-sm-5 col-md-4 col-lg-6">
<button class="btn btn-default" ng-click="fetch()" title="{{ lang.t('Refresh Records') }}">
<em aria-hidden="true" class="fas fa-redo"></em>
</button>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 col-lg-2">
</div>
<div class="col-xs-12 col-sm-3 col-md-4 col-lg-4">
</div>
</div>
<div class="table-responsive">
<table class="table table-striped content-table">
<thead>
<tr>
<th class="col-sm-2 col-md-2 col-lg-2 column-title">{{ lang.t("Created") }}</th>
<th class="col-sm-2 col-md-2 col-lg-2 column-title">{{ lang.t("Selected Files") }}</th>
<th class="col-sm-2 col-md-2 col-lg-2 column-title">{{ lang.t("Schedules") }}</th>
<th class="col-sm-1 col-md-1 col-lg-1 column-title">{{ lang.t("Structure") }}</th>
<th class="col-sm-2 col-md-2 col-lg-2 column-title">{{ lang.t("Destination") }}</th>
<th class="col-sm-2 col-md-2 col-lg-2 column-title">{{ lang.t("Notes") }}</th>
<th class="col-sm-1 col-md-1 col-lg-1 column-title">{{ lang.t("Size") }}</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="backup in backups track by $index" class="pointer" ng-class="{ 'backup-selected' : selected._id === backup._id }" ng-click="selectedBackup(backup)">
<td data-title="{{ lang.t('Created') }}">
<strong>{{ lang.d(backup.created, 'shorttime') }}</strong>
</td>
<td data-title="{{ lang.t('Selected Files') }}" ng-show="backup.backup_contains == const.BACKUP_TYPE_ACCOUNT_HOMEDIR">
<div ng-show="selected._id === backup._id">
<strong ng-show="totalFiles() === null">{{ lang.t("All Files/Directories Selected") }}</strong>
<strong ng-show="totalFiles() !== null">{{ lang.t("%s Files/Directories Selected", totalFiles()) }}</strong>
<div style="font-weight: inherit;" ng-show="backup.backup_structure == const.BACKUP_STRUCTURE_INCREMENTAL" ng-click="$event.stopPropagation();">
<a href="" class="btn btn-primary btn-xs" ng-click="fileBrowse()">{{lang.t('Change Files Selection')}}</a>
</div>
</div>
<div ng-hide="selected._id === backup._id">-</div>
</td>
<td>{{backup.schedules_names}}</td>
<td>{{const.BACKUP_STRUCTURE_NAMES[backup.backup_structure]}} <span ng-show="backup.encrypted"> - {{lang.t("Encrypted")}}</span></td>
<td>{{backup.destination_name}}</td>
<td data-title="{{ lang.t('Notes') }}" ng-click="$event.stopPropagation();" ng-dblclick="backup.editing = true;">
<div class="editable" ng-hide="backup.editing">{{ backup.notes ? backup.notes : lang.t("Double click to add notes...") }}</div>
<input ng-show="backup.editing" type="text" style="font-weight: normal;" class="form-control" ng-model="backup.notes" ng-keypress="saveNotes(backup, $event)" ng-blur="saveNotes(backup)" placeholder="{{ lang.t('Enter Notes...') }}" value="" />
</td>
<td data-title="{{ lang.t('Size') }}">
{{ backup.size >= 0 ? util.sizeToHumanReadable(backup.size) : lang.t("N/A") }}
</td>
</tr>
<tr ng-hide="!loading">
<td colspan="10">
<loading-box><span>{{ lang.t("Loading Backups") }}</span></loading-box>
</td>
</tr>
<tr ng-hide="backups.length > 0 || loading">
<td colspan="10"><span>{{ lang.t("No Backups Found") }}</span></td>
</tr>
</tbody>
</table>
</div>
<pagination fetch="fetch" meta="meta"></pagination>
<div class="buttons-container">
<div style="display: inline-block;" tooltip-enable="!selected._id" tooltip="top|Please select backup files to restore" ng-show="perm.canRestoreBackups">
<button class="btn btn-primary" ng-click="prepareSummary('Restore')" ng-disabled="!selected._id">
<em class="fas fa-sync"></em>
{{ lang.t("Restore") }}
</button>
</div>
<div style="display: inline-block;" tooltip-enable="!selected._id" tooltip="top|Please select backup files to download" ng-show="perm.canDownloadBackups">
<button class="btn btn-primary" ng-click="prepareSummary('Download')" ng-disabled="!selected._id">
<em class="fas fa-download"></em>
{{ lang.t("Download") }}
</button>
</div>
<button class="btn btn-danger" type="button" ng-click="selected={_id:''}; files={};" ng-show="selected._id">
<em class="fas fa-times"></em>
{{ lang.t("Clear Selection") }}
</button>
</div>
</div>