]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
da8a2cd25b505993c264ae01d499d3941e8e6115
[ceph.git] /
1 <cd-modal [modalRef]="activeModal">
2   <ng-container i18n="form title"
3                 class="modal-title">{{ action | titlecase }} {{ resource | upperFirst }}</ng-container>
4
5   <ng-container class="modal-content">
6     <form name="snapshotForm"
7           #formDir="ngForm"
8           [formGroup]="snapshotForm"
9           novalidate>
10       <div class="modal-body">
11         <!-- Name -->
12         <div class="form-group row">
13           <label class="cd-col-form-label required"
14                  for="snapshotName"
15                  i18n>Name</label>
16           <div class="cd-col-form-input">
17             <input class="form-control"
18                    type="text"
19                    placeholder="Snapshot name..."
20                    id="snapshotName"
21                    name="snapshotName"
22                    formControlName="snapshotName"
23                    autofocus>
24             <span class="invalid-feedback"
25                   *ngIf="snapshotForm.showError('snapshotName', formDir, 'required')"
26                   i18n>This field is required.</span>
27           </div>
28         </div>
29       </div>
30
31       <div class="modal-footer">
32         <cd-form-button-panel (submitActionEvent)="submit()"
33                               [form]="snapshotForm"
34                               [submitText]="(action | titlecase) + ' ' + (resource | upperFirst)"></cd-form-button-panel>
35       </div>
36     </form>
37   </ng-container>
38 </cd-modal>