open-vault/ui/app/templates/partials/role-pki/show.hbs
Matthew Irish cff34e983f
UI - pki updates (#4291)
* add require_cn to pki roles
* add policy_identifiers and basic_constraints_valid_for_non_ca to pki role form
* add new fields to the PKI docs
* add add_basic_constraints field
2018-04-08 21:09:29 -05:00

21 lines
841 B
Handlebars

<div class="box is-sideless is-fullwidth is-marginless">
{{#each model.fieldGroups as |fieldGroup|}}
{{#each-in fieldGroup as |group fields|}}
{{#if (or (eq group "default") (eq group "Options"))}}
{{#each fields as |attr|}}
{{info-table-row alwaysRender=true label=(capitalize (or attr.options.label (humanize (dasherize attr.name)))) value=(get model attr.name)}}
{{/each}}
{{else}}
<div class="box is-sideless is-fullwidth is-marginless">
<h2 class="title is-5">
{{group}}
</h2>
{{#each fields as |attr|}}
{{info-table-row alwaysRender=true label=(capitalize (or attr.options.label (humanize (dasherize attr.name)))) value=(get model attr.name)}}
{{/each}}
</div>
{{/if}}
{{/each-in}}
{{/each}}
</div>