1 <div class="modal-header">
2 <h4 class="modal-title pull-left">{{ editing ? 'Rename' : 'Create' }} RBD Snapshot</h4>
3 <button type="button" class="close pull-right" aria-label="Close" (click)="modalRef.hide()">
4 <span aria-hidden="true">×</span>
7 <form name="snapshotForm"
8 class="form-horizontal"
10 [formGroup]="snapshotForm"
12 <div class="modal-body">
15 <div class="form-group"
16 [ngClass]="{'has-error': snapshotForm.showError('snapshotName', formDir)}">
18 class="control-label col-sm-3"
19 for="snapshotName">Name
20 <span class="required"></span>
22 <div class="col-sm-9">
23 <input class="form-control"
25 placeholder="Snapshot name..."
28 formControlName="snapshotName"
32 *ngIf="snapshotForm.showError('snapshotName', formDir, 'required')">
33 This field is required.
40 <div class="modal-footer">
41 <div class="button-group text-right">
42 <cd-submit-button [form]="snapshotForm"
43 (submitAction)="submit()">
44 {{ editing ? 'Rename' : 'Create' }} Snapshot
46 <button type="button" class="btn btn-sm btn-default" (click)="modalRef.hide()">Close</button>