3 class="modal-title">Restore Image</ng-container>
5 <ng-container class="modal-content">
6 <form name="restoreForm"
9 [formGroup]="restoreForm"
11 <div class="modal-body">
13 <ng-container i18n>To restore</ng-container>
14 <kbd>{{ poolName }}/{{ imageName }}@{{ imageId }}</kbd>,
15 <ng-container i18n>type the image's new name and click</ng-container>
16 <kbd i18n>Restore Image</kbd>.
19 <div class="form-group"
20 [ngClass]="{'has-error': restoreForm.showError('name', formDir)}">
28 formControlName="name"
30 <span class="help-block"
31 *ngIf="restoreForm.showError('name', formDir, 'required')"
32 i18n>This field is required.</span>
36 <div class="modal-footer">
37 <div class="button-group text-right">
38 <cd-submit-button [form]="restoreForm"
39 (submitAction)="restore()"
40 i18n>Restore Image</cd-submit-button>
43 class="btn btn-sm btn-default"
44 (click)="modalRef.hide()">Cancel</button>