Current File : //usr/local/jetapps/var/www/jetbackup5/docroot/app/views/accountBackupsRestoreSummary.htm |
<div class="row">
<div class="col-md-6">
<h2>{{lang.t("Items To Restore")}}</h2>
<p>{{lang.t("The following items will be restored. you can use the \"Remove items\" button to remove them all from the restore process or click cancel to rearrange the items you want to restore")}}</p>
<div class="row">
<div class="col-md-4" ng-repeat="(contains, items) in list_checked">
<div style="padding: 10px; margin-bottom: 15px; border: 1px solid #ddd;">
<h5 style="margin-bottom: 0; font-size: 14px; font-weight: bold;">{{const.BACKUP_TYPE_ACCOUNT_NAMES[contains]}}</h5>
{{lang.t("%s items", items.length)}}
<span class="fas fa-question-circle" style="cursor: pointer;" uib-tooltip-template="'itemsList.htm'" tooltip-trigger="'click outsideClick'" tooltip-placement="auto" tooltip-class="backups-tooltip"></span>
<div ng-hide="accountData.orphan && contains == const.BACKUP_TYPE_ACCOUNT_CONFIG">
<a href="" ng-click="removeItems(contains)" style="color: #cc0000"><span class="fas fa-times"></span> {{lang.t("Remove items")}}</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div ng-show="gotItems([const.BACKUP_TYPE_ACCOUNT_CONFIG,const.BACKUP_TYPE_ACCOUNT_HOMEDIR,const.BACKUP_TYPE_ACCOUNT_EMAILS])">
<h2>{{lang.t("Restore Options")}}</h2>
<div ng-show="gotItems([const.BACKUP_TYPE_ACCOUNT_CONFIG]) && !accountData.orphan && !panelConfig.root && !accountData.reseller">
<div class="pretty p-default p-curve p-smooth">
<input type="checkbox" ng-model="options.terminate" id="terminate" ng-checked="options.terminate" />
<div class="state p-primary"><label for="terminate">{{ lang.t("Terminate account before restore") }}</label></div>
</div>
</div>
<div ng-show="gotItems([const.BACKUP_TYPE_ACCOUNT_HOMEDIR,const.BACKUP_TYPE_ACCOUNT_EMAILS]) && !options.terminate && !accountData.orphan">
<div class="pretty p-default p-curve p-smooth" tooltip="right|This option preserves existing live account data and merges with the selected backup.">
<input type="checkbox" ng-model="options.merge" id="merge" ng-checked="options.merge" />
<div class="state p-primary"><label for="merge">{{ lang.t("Merge backup data with live account data") }} <span class="fas fa-info-circle" style="display: inline;"></span></label></div>
</div>
</div>
<div ng-show="gotItems([const.BACKUP_TYPE_ACCOUNT_CONFIG]) && (perm.isRoot || perm.isReseller)">
<div class="pretty p-default p-curve p-smooth" tooltip="right|This option suspends the account after restore. Automatically selected if the account was backed up as suspended.">
<input type="checkbox" ng-model="options.suspend" id="suspend" ng-checked="options.suspend" />
<div class="state p-primary"><label for="suspend">{{ lang.t("Suspend account after restore") }}</label> <span class="fas fa-info-circle" style="display: inline;"></span></div>
</div>
</div>
<div ng-show="gotItems([const.BACKUP_TYPE_ACCOUNT_CONFIG]) && (accountData.orphan || options.terminate) && perm.isRoot">
<div class="pretty p-default p-curve p-smooth" tooltip="right|If not checked will be restored as a regular user, resellers will be converted to regular users">
<input type="checkbox" ng-model="options.reseller" id="reseller" ng-checked="options.reseller" />
<div class="state p-primary"><label for="reseller">{{ lang.t("Grant account reseller privileges after restore") }} <span class="fas fa-info-circle" style="display: inline;"></span></label></div>
</div>
</div>
<div ng-show="gotItems([const.BACKUP_TYPE_ACCOUNT_CONFIG]) && (accountData.orphan || options.terminate) && perm.isRoot">
<div class="pretty p-default p-curve p-smooth">
<input type="checkbox" ng-model="localOptions.chown" id="chown" ng-checked="localOptions.chown" ng-disabled="chownDisabled" />
<div class="state p-primary"><label for="chown">{{ lang.t("Change account owner") }}</label></div>
</div>
</div>
</div>
<div ng-show="gotItems([const.BACKUP_TYPE_ACCOUNT_CONFIG]) && (accountData.orphan || options.terminate) && localOptions.chown && perm.isRoot">
<h2>{{lang.t("New Owner")}}</h2>
<div class="row">
<div class="col-md-10 col-sm-10 col-xs-12">
<div class="input-group">
<span class="input-group-addon">{{ lang.t("New Owner") }}</span>
<md-autocomplete
md-item-text="account.username"
md-search-text="autocomplete.accountText"
md-no-cache="true"
md-clear-button="false"
md-input-id="accountSelection"
md-menu-class="account-selection-results"
md-selected-item-change="selectNewOwner(account)"
md-items="account in searchAccounts(autocomplete.accountText)"
md-min-length="2"
placeholder="{{ lang.t('Start typing the requested account...') }}">
<md-item-template>
<div ng-include="includePath('accountDropdown')"></div>
</md-item-template>
<md-not-found>
{{ lang.t("No account matching \"%s\" were found.", autocomplete.accountText) }}
</md-not-found>
</md-autocomplete>
<span class="input-group-btn" ng-show="options.owner">
<button class="btn btn-primary" ng-click="resetNewOwner()"><span class="fas fa-times"></span></button>
</span>
</div>
<p class="help-block" ng-hide="require.owner">{{lang.t("Enter the new owner name that you want to assign to this account. Leave empty to use the owner from the backup")}}</p>
<p class="help-block" ng-show="require.owner">{{lang.t("Enter the new owner name that you want to assign to this account. You must select new owner as the owner found in the backup does not exist on this server")}}</p>
</div>
</div>
</div>
<div ng-show="gotItems([const.BACKUP_TYPE_ACCOUNT_HOMEDIR])">
<h2>{{ lang.t("Directories and Files to exclude") }}</h2>
<div class="row">
<div class="col-md-10 col-sm-10 col-xs-12">
<div class="input-group">
<input id="exclude" class="form-control" ng-model="exclude.row" type="text" value="" />
<div class="input-group-btn">
<button type="button" class="btn btn-primary" ng-click="addExcludeRow()">{{ lang.t("Add Path") }}</button>
<button type="button" class="btn btn-primary" ng-click="addMultiExcludeRow()">{{ lang.t("Insert Multiple") }}</button>
</div>
</div>
<p class="help-block">{{ lang.t("Exclude files and directories from restoration") }}</p>
<div class="include-btns">
<button type="button" ng-click="options.exclude.splice($index, 1)" class="btn btn-primary btn-xs" ng-repeat="exclude in options.exclude track by $index">
<em aria-hidden="true" class="fas fa-times"></em>
{{ exclude }}
</button>
</div>
</div>
</div>
</div>
<div ng-show="restore_conditions.length">
<h2>{{lang.t("Restore Conditions")}}</h2>
<div ng-repeat="condition in restore_conditions">
<div class="pretty p-default p-curve p-smooth">
<input type="checkbox" ng-model="conditions.restore[condition._id]" id="condition_{{condition._id}}" ng-checked="conditions.restore[condition._id]" />
<div class="state p-primary"><label for="condition_{{condition._id}}">{{ condition.condition }}</label></div>
</div>
</div>
</div>
<div ng-show="askForEncryptionKey()">
<h2>{{lang.t("Backups Private Encryption Key")}}</h2>
<input type="text" class="form-control" ng-model="encryption.key" placeholder="{{lang.t('Paste your backups private encryption key in order to restore the selected items')}}" value="" />
</div>
</div>
</div>