{{! Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: BUSL-1.1 ~}} {{#if (eq @mode "create")}} Create Role {{else if (eq @mode "edit")}} Edit Role {{else}} {{@model.id}} {{/if}} {{#if (eq @mode "show")}} {{#if @model.canDelete}} {{/if}} {{#if (and @model.canRotateRoleCredentials (eq @model.type "static"))}} {{/if}} {{#if (or (and (eq @model.type "static") @model.canGetCredentials) (and (eq @model.type "dynamic") @model.canGenerateCredentials) ) }} {{/if}} {{#if @model.canEditRole}} Edit role {{/if}} {{#each @model.showFields as |attr|}} {{#let attr.options.defaultShown as |defaultDisplay|}} {{#if (eq attr.type "object")}} {{else if (eq attr.options.editType "ttl")}} {{else}} {{/if}} {{/let}} {{/each}} {{else}} {{! Edit or Create }}