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