Current File : //proc/self/root/usr/local/jetapps/var/www/jetbackup5/docroot/app/views_enduser/restore/ftp.htm
<div ng-controller="restore_ftp_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">
            <search ng-model="metaData.filterValue" ng-change="fetch()"></search>
        </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("FTP Account") }}</th>
                <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("Schedules") }}</th>
                <th class="col-sm-2 col-md-2 col-lg-2 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-3 col-md-3 col-lg-3 column-title">{{ lang.t("Notes") }}</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="backup in backups track by $index" class="pointer" ng-class="{ 'backup-selected' : isSelectedBackup(backup) }" ng-click="selectedBackup(backup)">
                <td>{{backup.name}}</td>
                <td data-title="{{ lang.t('Selected Backup') }}">
                    <strong ng-hide="backup.options.length">{{ lang.d(backup.created, 'shorttime') }}</strong>
                    <label ng-show="backup.options.length" ng-click="$event.stopPropagation();"><select id="dates" class="form-control" data-ng-options="option._id as option.display for option in backup.options" data-ng-model="backup.new_id" ng-blur="changeBackup(backup)" ng-change="changeBackup(backup)"></select></label>
                    <div style="font-weight: inherit;" ng-hide="backup.options.length">
                        {{ lang.t("Total of %s backups found", backup.total) }}
                        <a href="" class="btn btn-primary btn-xs" ng-click="selectBackup(backup); $event.stopPropagation();">{{lang.t('Choose Other Backup')}}</a>
                    </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>
            </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="!isSelected()" tooltip="top|Please select backup files to restore" ng-show="perm.canRestoreBackups">
            <button class="btn btn-primary" ng-click="prepareSummary('Restore')" ng-disabled="!isSelected()">
                <em  class="fas fa-sync"></em>
                {{ lang.t("Restore") }}
            </button>
        </div>
        <div style="display: inline-block;" tooltip-enable="!isSelected()" tooltip="top|Please select backup files to download" ng-show="perm.canDownloadBackups">
            <button class="btn btn-primary" ng-click="prepareSummary('Download')" ng-disabled="!isSelected()">
                <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="isSelected()">
            <em class="fas fa-times"></em>
            {{ lang.t("Clear Selection") }}
        </button>
    </div>

</div>