<cd-alert-panel
  *ngIf="hasAllHostsAllowed()"
  type="info"
  [showTitle]="false">
  <div cdsStack="horizontal"
       gap="2">
    <div cdsStack="vertical"
         gap="2">
      <strong i18n>Host access: All hosts allowed</strong>
      <p
        class="cds-mb-0 cds-mt-1"
        i18n
      >
        Allowing all hosts grants access to every initiator on the network. Authentication is not supported in this mode, which may expose the subsystem to unauthorized access.
      </p>
    </div>
    <a cdsLink
       class="text-nowrap cds-ml-3 text-muted"
       (click)="editHostAccess()"
       i18n>Edit host access</a>
  </div>
</cd-alert-panel>

<cd-table [data]="hasAllHostsAllowed() ? [] : initiators"
          columnMode="flex"
          (fetchData)="listInitiators()"
          [columns]="initiatorColumns"
          selectionType="multiClick"
          (updateSelection)="updateSelection($event)">
  <div class="table-actions">
    <cd-table-actions [permission]="permission"
                      [selection]="selection"
                      class="btn-group"
                      [tableActions]="tableActions">
    </cd-table-actions>
  </div>
</cd-table>
<ng-template #dhchapTpl>
  <div cdsStack="horizontal"
       gap="4">
    {{ authStatus !== authType.NO_AUTH ? 'Yes' : 'No' }}
  </div>
</ng-template>
