{{options.title}}

{{#if (or options.generateWithoutInput (get model options.generatedAttr))}} {{#if loading}} {{partial "partials/loading"}} {{else}}
{{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" backend.id data-test-secret-generate-back=true class="button" }} Back {{/link-to}} {{else}} {{/if}}
{{/if}} {{else}}
{{message-error model=model}} {{#if model.fieldGroups}} {{partial "partials/form-field-groups-loop"}} {{else}} {{#each model.attrs as |attr|}} {{partial "partials/form-field-from-model"}} {{/each}} {{/if}}
{{#link-to "vault.cluster.secrets.backend.list-root" backend.id class="button" data-test-secret-generate-cancel=true }} Cancel {{/link-to}}
{{/if}}