{{options.title}}

{{#if model.hasGenerated}}
{{message-error model=model}} {{#unless model.isError}} {{#message-in-page type="warning" data-test-warning=true}} You will not be able to access this information later, so please copy the information below. {{/message-in-page}} {{/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}} {{info-table-row label=(capitalize (or attr.options.label (humanize (dasherize attr.name)))) value=(get model attr.name)}} {{/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}}
{{message-error model=model}} {{#if model.helpText}}

{{model.helpText}}

{{/if}} {{#if model.fieldGroups}} {{partial "partials/form-field-groups-loop"}} {{else}} {{#each model.attrs as |attr|}} {{form-field data-test-field attr=attr model=model}} {{/each}} {{/if}}
{{#link-to "vault.cluster.secrets.backend.list-root" backendPath class="button" data-test-secret-generate-cancel=true }} Cancel {{/link-to}}
{{/if}}