{{!
  Copyright (c) HashiCorp, Inc.
  SPDX-License-Identifier: BUSL-1.1
~}}

{{#if this.model.operationAll}}
  <AlertInline @type="info" @message="This role allows all KMIP operations" class="is-marginless" />
{{/if}}
{{#each @model.operationFormFields as |group|}}
  {{#each-in group as |groupName fieldsInGroup|}}
    <InfoTableRow @alwaysRender={{true}} @label={{groupName}} @value={{true}}>
      <div>
        {{#each fieldsInGroup as |field|}}
          <Icon
            aria-label={{compute (action "operationEnabled") this.model field}}
            class={{compute (action "iconClass") this.model field}}
            @name={{compute (action "iconGlyph") this.model field}}
          />
          {{field.options.label}}
          <br />
        {{/each}}
      </div>
    </InfoTableRow>
  {{/each-in}}
{{/each}}