open-vault/ui/app/templates/partials/role-aws/show.hbs

19 lines
877 B
Handlebars
Raw Normal View History

2018-04-03 14:16:57 +00:00
<div class="box is-fullwidth is-sideless is-paddingless is-marginless">
{{#if (gt model.credentialTypes.length 1)}}
2018-10-31 22:08:25 +00:00
<AlertBanner
@type="warning"
@message="This role has more than one credential_type, currently: {{join ', ' model.credentialTypes}}.
When you next edit this role, you will have to choose a single credential type."
/>
{{/if}}
{{#each model.fields as |attr|}}
{{#if (eq attr.name "policyDocument")}}
{{#info-table-row label=(capitalize (or attr.options.label (humanize (dasherize attr.name)))) value=model.policyDocument}}
<pre><code class="is-paddingless">{{stringify (jsonify model.policyDocument)}}</code></pre>
2018-04-03 14:16:57 +00:00
{{/info-table-row}}
{{else}}
{{info-table-row label=(capitalize (or attr.options.label (humanize (dasherize attr.name)))) value=(get model attr.name)}}
{{/if}}
{{/each}}
</div>