{{message-error model=model}}
{{#unless model.isError}}
{{/unless}}
{{#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 (or
(eq attr.name "key")
(eq attr.name "secretKey")
(eq attr.name "securityToken")
(eq attr.name "privateKey")
)}}
{{#info-table-row label=(capitalize (or attr.options.label (humanize (dasherize attr.name)))) value=(get model attr.name)}}
{{/info-table-row}}
{{else}}
{{info-table-row label=(capitalize (or attr.options.label (humanize (dasherize attr.name)))) value=(get model attr.name)}}
{{/if}}
{{/if}}
{{/each}}
{{#copy-button
clipboardText=model.toCreds
class="button is-primary"
buttonType="button"
success=(action (set-flash-message "Credentials copied!"))
}}
Copy credentials
{{/copy-button}}
{{#if model.leaseId}}
{{#copy-button
clipboardText=model.leaseId
class="button"
buttonType="button"
success=(action (set-flash-message "Lease ID copied!"))
}}
Copy Lease ID
{{/copy-button}}
{{/if}}
{{#if options.backIsListLink}}
{{#link-to
"vault.cluster.secrets.backend.list-root"
backendPath
data-test-secret-generate-back=true
class="button"
}}
Back
{{/link-to}}
{{else}}
{{/if}}
{{else}}