]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/blob
9a32a3ce887d6dd9824d32e7b0e2466dfa4e05c8
[ceph-ci.git] /
1 <cd-modal [modalRef]="modalRef">
2   <ng-container i18n="form title|Example: Create rbdSnapshot@@formTitle"
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         <div class="button-group text-right">
33           <cd-submit-button [form]="snapshotForm"
34                             i18n="form action button|Example: Create rbdSnapshot@@formActionButton"
35                             (submitAction)="submit()">{{ action | titlecase }}
36             {{ resource | upperFirst }}</cd-submit-button>
37           <cd-back-button [back]="modalRef.hide"
38                           name="Close"
39                           i18n-name>
40           </cd-back-button>
41         </div>
42       </div>
43     </form>
44   </ng-container>
45 </cd-modal>