Move optional field to the end

This commit is contained in:
Girish Ramakrishnan
2019-09-05 11:38:55 -07:00
parent c7d434a091
commit 4cc01a2152

View File

@@ -150,17 +150,17 @@
<select class="form-control" id="storageFormat" ng-change="key = ''" ng-model="format" ng-options="a.value as a.name for a in formats"></select>
</div>
<div class="form-group" ng-class="{ 'has-error': error.key }" ng-show="provider !== 'noop'">
<label class="control-label" for="inputConfigureBackupKey">Encryption key (optional)</label>
<input type="text" class="form-control" ng-model="key" id="inputConfigureBackupKey" name="prefix" ng-disabled="busy" placeholder="Passphrase used to encrypt the backups">
</div>
<div class="form-group" ng-class="{ 'has-error': error.backupId }">
<label class="control-label" for="inputConfigureBackupId">Backup ID</label>
<input type="text" class="form-control" ng-model="backupId" name="inputConfigureBackupId" placeholder="Backup Id" required ng-disabled="busy">
</div>
<div class="form-group" ng-class="{ 'has-error': error.key }" ng-show="provider !== 'noop'">
<label class="control-label" for="inputConfigureBackupKey">Encryption key (optional)</label>
<input type="text" class="form-control" ng-model="key" id="inputConfigureBackupKey" name="prefix" ng-disabled="busy" placeholder="Passphrase used to encrypt the backups">
</div>
<input class="ng-hide" type="submit" ng-disabled="configureBackupForm.$invalid"/>
</div>
</div>