{{key-value-header baseKey=(hash display=model.id id=model.idForNav) path="vault.cluster.secrets.backend.list" mode=mode root=root showCurrent=true }}

{{#if (eq mode "create") }} Create Template {{else if (eq mode "edit")}} Edit Template {{else}} Template {{model.id}} {{/if}}

{{#if (eq mode "show")}} {{#if capabilities.canDelete}} {{/if}} {{#if capabilities.canUpdate }} Edit template {{/if}} {{/if}} {{#if (or (eq mode 'edit') (eq mode 'create'))}}
{{message-error model=model}} {{#each model.attrs as |attr|}} {{#if (and (eq attr.name 'name') (eq mode 'edit')) }} {{#if attr.options.subText}}

{{attr.options.subText}}

{{/if}} {{else}} {{/if}} {{/each}}
{{#secret-link mode=(if (eq mode "create") "list" "show") class="button" secret=(concat model.idPrefix model.id) }} Cancel {{/secret-link}}
{{else}} {{#if model.displayErrors}}
{{message-error model=model}}
{{/if}}
{{#each model.attrs as |attr|}} {{#if (eq attr.type "object")}} {{info-table-row label=(capitalize (or attr.options.label (humanize (dasherize attr.name)))) value=(stringify (get model attr.name))}} {{else if (eq attr.type "array")}} {{info-table-row label=(capitalize (or attr.options.label (humanize (dasherize attr.name)))) value=(get model attr.name) type=attr.type viewAll=attr.name }} {{else}} {{info-table-row label=(capitalize (or attr.options.label (humanize (dasherize attr.name)))) value=(get model attr.name)}} {{/if}} {{/each}}
{{/if}}