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"
36 *ngIf="snapshotForm.showError('snapshotName', formDir, 'required')">
37 This field is required.
44 <div class="modal-footer">
45 <div class="button-group text-right">
46 <cd-submit-button [form]="snapshotForm"
47 (submitAction)="submit()"
49 { editing, select, true {Rename} other {Create}} Snapshot
52 class="btn btn-sm btn-default"
53 (click)="modalRef.hide()"