All files / src/app/ceph/block/rbd-trash-restore-modal rbd-trash-restore-modal.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 505x                                                                                                  
<cd-modal>
  <ng-container i18n
                class="modal-title">Restore Image</ng-container>
 
  <ng-container class="modal-content">
    <form name="restoreForm"
          class="form"
          #formDir="ngForm"
          [formGroup]="restoreForm"
          novalidate>
      <div class="modal-body">
        <p>
          <ng-container i18n>To restore</ng-container>&nbsp;
          <kbd>{{ poolName }}/{{ imageName }}@{{ imageId }}</kbd>,&nbsp;
          <ng-container i18n>type the image's new name and click</ng-container>&nbsp;
          <kbd i18n>Restore Image</kbd>.
        </p>
 
        <div class="form-group"
             [ngClass]="{'has-error': restoreForm.showError('name', formDir)}">
          <label for="name"
                 i18n>New Name</label>
          <input type="text"
                 class="form-control"
                 name="name"
                 id="name"
                 autocomplete="off"
                 formControlName="name"
                 autofocus>
          <span class="help-block"
                *ngIf="restoreForm.showError('name', formDir, 'required')"
                i18n>This field is required.</span>
        </div>
      </div>
 
      <div class="modal-footer">
        <div class="button-group text-right">
          <cd-submit-button [form]="restoreForm"
                            (submitAction)="restore()"
                            i18n>Restore Image</cd-submit-button>
          <cd-back-button [back]="modalRef.hide"
                          name="Cancel"
                          i18n-name>
          </cd-back-button>
        </div>
      </div>
    </form>
  </ng-container>
</cd-modal>