Add translations for backup edit

This commit is contained in:
Johannes Zellner
2022-04-08 15:09:04 +02:00
parent f282deffd5
commit 46f0bdf393
2 changed files with 18 additions and 12 deletions

View File

@@ -11,13 +11,9 @@
<div class="col-xs-9 text-right">{{ backupDetails.backup.id }}</div>
</div>
<div class="row">
<div class="col-xs-3 text-muted">Label:</div>
<div class="col-xs-3 text-muted">{{ 'backups.backupEdit.label' | tr }}:</div>
<div class="col-xs-9 text-right">{{ backupDetails.backup.label }}</div>
</div>
<div class="row">
<div class="col-xs-3 text-muted">PreserveSecs:</div>
<div class="col-xs-9 text-right">{{ backupDetails.backup.preserveSecs }}</div>
</div>
<div class="row">
<div class="col-xs-3 text-muted">{{ 'backups.backupDetails.date' | tr }}:</div>
<div class="col-xs-9 text-right">{{ backupDetails.backup.creationTime | prettyLongDate }}</div>
@@ -48,22 +44,22 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Edit Backup</h4>
<h4 class="modal-title">{{ 'backups.backupEdit.title' | tr }}</h4>
</div>
<div class="modal-body">
<form name="editBackupForm" role="form" novalidate ng-submit="editBackup.submit()" autocomplete="off">
<p class="has-error text-center" ng-show="editBackup.error">{{ editBackup.error }}</p>
<div class="form-group">
<label class="control-label" for="inputBackupLabel">Label</label>
<label class="control-label" for="inputBackupLabel">{{ 'backups.backupEdit.label' | tr }}</label>
<input type="text" class="form-control" ng-model="editBackup.label" id="inputBackupLabel" name="label" ng-disabled="editBackup.busy" placeholder="" autofocus>
</div>
<div class="form-group">
<label class="control-label" for="inputBackupLabel">Retention</label>
<label class="control-label" for="inputBackupLabel">{{ 'backups.backupEdit.preserved.label' | tr }}</label>
<div class="checkbox">
<label>
<input type="checkbox" ng-model="editBackup.persist">Persist backup regardless of retention policy</input>
<input type="checkbox" ng-model="editBackup.persist">{{ 'backups.backupEdit.preserved.description' | tr }}</input>
</label>
</div>
</div>
@@ -554,7 +550,7 @@
</thead>
<tbody>
<tr ng-repeat="backup in backups">
<td><i class="fas fa-lock" ng-show="backup.preserveSecs === -1" uib-tooltip="This backup will be preserved"></i></td>
<td><i class="fas fa-lock" ng-show="backup.preserveSecs === -1" uib-tooltip="{{ 'backups.listing.tooltipPreservedBackup' | tr }}"></i></td>
<td ng-click="backupDetails.show(backup)" class="hand">v{{ backup.packageVersion }}</td>
<td ng-click="backupDetails.show(backup)" class="hand"><span uib-tooltip="{{ backup.creationTime | prettyLongDate }}">{{ backup.creationTime | prettyDate }} <b ng-show="backup.label">({{ backup.label }})</b></span></td>
<td ng-click="backupDetails.show(backup)" class="hand">
@@ -562,7 +558,7 @@
<span ng-show="backup.contents.length">{{ 'backups.listing.appCount' | tr:{ appCount: backup.contents.length } }}</span>
</td>
<td class="text-right no-wrap" style="vertical-align: bottom">
<button class="btn btn-xs btn-default" ng-click="editBackup.show(backup)" uib-tooltip="Edit Backup"><i class="fa fa-pencil-alt"></i></button>
<button class="btn btn-xs btn-default" ng-click="editBackup.show(backup)" uib-tooltip="{{ 'backups.listing.tooltipEditBackup' | tr }}"><i class="fa fa-pencil-alt"></i></button>
<button class="btn btn-xs btn-default" ng-click="downloadConfig(backup)" uib-tooltip="{{ 'backups.listing.tooltipDownloadBackupConfig' | tr }}"><i class="fas fa-file-alt"></i></button>
</td>
</tr>