]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/blob
2cc3e08dff07d0be6aa7120833aeabd6b14c28eb
[ceph-ci.git] /
1 <cd-modal [modalRef]="activeModal">
2   <ng-container i18n
3                 class="modal-title">Restore Image</ng-container>
4
5   <ng-container class="modal-content">
6     <form name="restoreForm"
7           class="form"
8           #formDir="ngForm"
9           [formGroup]="restoreForm"
10           novalidate>
11       <div class="modal-body">
12         <p i18n>To restore&nbsp;
13           <kbd>{{ imageSpec }}@{{ imageId }}</kbd>,&nbsp;
14           type the image's new name and click&nbsp;
15           <kbd>Restore</kbd>.</p>
16
17         <div class="form-group">
18           <label class="col-form-label"
19                  for="name"
20                  i18n>New Name</label>
21           <input type="text"
22                  class="form-control"
23                  name="name"
24                  id="name"
25                  autocomplete="off"
26                  formControlName="name"
27                  autofocus>
28           <span class="invalid-feedback"
29                 *ngIf="restoreForm.showError('name', formDir, 'required')"
30                 i18n>This field is required.</span>
31         </div>
32       </div>
33
34       <div class="modal-footer">
35         <cd-form-button-panel (submitActionEvent)="restore()"
36                               [form]="restoreForm"
37                               [submitText]="actionLabels.RESTORE"></cd-form-button-panel>
38       </div>
39     </form>
40   </ng-container>
41 </cd-modal>