1 <div class="modal-header">
2 <h4 class="modal-title pull-left"
3 i18n>{ editing, select, true {Rename} other {Create}} RBD Snapshot</h4>
5 class="close pull-right"
7 (click)="modalRef.hide()">
8 <span aria-hidden="true">×</span>
11 <form name="snapshotForm"
12 class="form-horizontal"
14 [formGroup]="snapshotForm"
16 <div class="modal-body">
19 <div class="form-group"
20 [ngClass]="{'has-error': snapshotForm.showError('snapshotName', formDir)}">
21 <label class="control-label col-sm-3"
23 <ng-container i18n>Name</ng-container>
24 <span class="required"></span>
26 <div class="col-sm-9">
27 <input class="form-control"
29 placeholder="Snapshot name..."
32 formControlName="snapshotName"
34 <span class="help-block"
35 *ngIf="snapshotForm.showError('snapshotName', formDir, 'required')"
36 i18n>This field is required.</span>
42 <div class="modal-footer">
43 <div class="button-group text-right">
44 <cd-submit-button [form]="snapshotForm"
45 (submitAction)="submit()"
46 i18n>{ editing, select, true {Rename} other {Create}} Snapshot</cd-submit-button>
47 <cd-back-button [back]="modalRef.hide"