7e35bd56b0
* Add test for db role setting form component * fix test, add changelog
39 lines
1.3 KiB
Handlebars
39 lines
1.3 KiB
Handlebars
<div class="box is-sideless is-fullwidth is-marginless" data-test-role-settings-section>
|
|
<h3 class="title is-5">Role Settings</h3>
|
|
{{#unless this.settingFields}}
|
|
<EmptyState
|
|
@title="No role type selected"
|
|
@message="Select a type of role to be able to configure it"
|
|
/>
|
|
{{else}}
|
|
<div class="form-section">
|
|
{{#each this.settingFields as |attr|}}
|
|
{{#if (and (eq @mode 'edit') (eq attr.name 'username'))}}
|
|
<ReadonlyFormField @attr={{attr}} @value={{get @model attr.name}} />
|
|
{{else}}
|
|
{{form-field data-test-field attr=attr model=@model}}
|
|
{{/if}}
|
|
|
|
{{/each}}
|
|
</div>
|
|
{{/unless}}
|
|
</div>
|
|
|
|
{{#unless (eq this.statementFields 'NONE')}}
|
|
<div class="box is-sideless is-fullwidth is-marginless" data-test-statements-section>
|
|
<h3 class="title is-5">Statements</h3>
|
|
{{#unless this.statementFields}}
|
|
<EmptyState
|
|
@title="No role type selected"
|
|
@message="Select a type of role to be able to add statements for creation, revocation, and/or rotation."
|
|
/>
|
|
{{else}}
|
|
<div class="form-section">
|
|
{{#each this.statementFields as |attr|}}
|
|
{{form-field data-test-field attr=attr model=@model}}
|
|
{{/each}}
|
|
</div>
|
|
{{/unless}}
|
|
</div>
|
|
{{/unless}}
|