All files / src/app/ceph/block/iscsi-target-iqn-settings-modal iscsi-target-iqn-settings-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 414x                                                                                
<cd-modal>
  <ng-container class="modal-title"
                i18n>Advanced Settings</ng-container>
 
  <ng-container class="modal-content">
    <form name="settingsForm"
          class="form"
          #formDir="ngForm"
          [formGroup]="settingsForm"
          novalidate>
      <div class="modal-body">
        <p class="alert-warning"
           i18n>Changing these parameters from their default values is usually not necessary.</p>
 
        <div class="form-group row"
             *ngFor="let setting of settingsForm.controls | keyvalue"
             [ngClass]="{'has-error': settingsForm.showError(setting.key, formDir)}">
          <div class="col-sm-12">
            <cd-iscsi-setting [settingsForm]="settingsForm"
                              [formDir]="formDir"
                              [setting]="setting.key"
                              [limits]="getTargetControlLimits(setting.key)"></cd-iscsi-setting>
          </div>
        </div>
      </div>
 
      <div class="modal-footer">
        <div class="button-group text-right">
          <cd-submit-button i18n
                            [form]="settingsForm"
                            (submitAction)="save()">Confirm</cd-submit-button>
          <cd-back-button [back]="modalRef.hide"
                          name="Cancel"
                          i18n-name>
          </cd-back-button>
        </div>
      </div>
    </form>
  </ng-container>
</cd-modal>