1 <div class="modal-header">
2 <h4 class="modal-title float-left"
3 i18n>{ editing, select, true {Rename} other {Create}} RBD Snapshot</h4>
5 class="close float-right"
7 (click)="modalRef.hide()">
8 <span aria-hidden="true">×</span>
11 <form name="snapshotForm"
13 [formGroup]="snapshotForm"
15 <div class="modal-body">
18 <div class="form-group row"
19 [ngClass]="{':invalid': snapshotForm.showError('snapshotName', formDir)}">
20 <label class="col-form-label col-sm-3"
22 <ng-container i18n>Name</ng-container>
23 <span class="required"></span>
25 <div class="col-sm-9">
26 <input class="form-control"
28 placeholder="Snapshot name..."
31 formControlName="snapshotName"
33 <span class="form-text text-muted"
34 *ngIf="snapshotForm.showError('snapshotName', formDir, 'required')">
35 i18n>This field is required.</span>
41 <div class="modal-footer">
42 <div class="button-group text-right">
43 <cd-submit-button [form]="snapshotForm"
44 (submitAction)="submit()"
45 i18n>{ editing, select, true {Rename} other {Create}} Snapshot</cd-submit-button>
46 <cd-back-button [back]="modalRef.hide"