# All files / src/app/ceph/block/mirroring/pool-edit-mode-modal pool-edit-mode-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
    50
    515x

     <cd-modal>
      <ng-container i18n
                    class="modal-title">Edit pool mirror mode</ng-container>

      <ng-container class="modal-content">
        <form name="editModeForm"
              class="form"
              #formDir="ngForm"
              [formGroup]="editModeForm"
              novalidate>
          <div class="modal-body">
            <p>
              <ng-container i18n>To edit the mirror mode for pool&nbsp;
              <kbd>{{ poolName }}</kbd>, select a new mode from the list and click&nbsp;
              <kbd>Update</kbd>.</ng-container>
            </p>

            <div class="form-group"
                 [ngClass]="{'has-error': editModeForm.showError('mirrorMode', formDir)}">
              <label class="control-label"
                     for="mirrorMode">
                <span i18n>Mode</span>
              </label>
              <select id="mirrorMode"
                      name="mirrorMode"
                      class="form-control"
                      formControlName="mirrorMode">
                <option *ngFor="let mirrorMode of mirrorModes"
                        [value]="mirrorMode.id">{{ mirrorMode.name }}</option>
              </select>
              <span class="help-block"
                    *ngIf="editModeForm.showError('mirrorMode', formDir, 'cannotDisable')"
                    i18n>Peer clusters must be removed prior to disabling mirror.</span>
            </div>
          </div>

          <div class="modal-footer">
            <div class="button-group text-right">
              <cd-submit-button i18n
                                [form]="editModeForm"
                                (submitAction)="update()">Update</cd-submit-button>
              <cd-back-button [back]="modalRef.hide"
                              name="Cancel"
                              i18n-name>
              </cd-back-button>
            </div>
          </div>
        </form>
      </ng-container>
    </cd-modal>