chore: 🤖 wrap grant scope in fieldset with legend
This commit is contained in:
2 files changed
+39
-29
No files matched your search
@@ -44,43 +44,45 @@
|
||||
{{/if}}
|
||||
</form.textarea>
|
||||
|
||||
<form.radioGroup @name="grant_scope_id" @selectedValue={{@model.grant_scope_id}} as |radioGroup|>
|
||||
<Rose::Dropdown
|
||||
@text={{concat (t "form.grant_scope.label") ": " this.selectedGrantScope.displayName}}
|
||||
aria-describedby="helper-text-grant-scope"
|
||||
as |dropdown|>
|
||||
{{#each @grantScopes as |grantScope|}}
|
||||
<dropdown.item>
|
||||
<radioGroup.radio
|
||||
@label={{grantScope.model.displayName}}
|
||||
@value={{grantScope.model.id}}
|
||||
/>
|
||||
</dropdown.item>
|
||||
{{#each grantScope.subScopes as |subScope|}}
|
||||
<dropdown.item class="indent-1">
|
||||
<fieldset
|
||||
aria-labelledby="legend-text-grant-scope"
|
||||
aria-describedby="helper-text-grant-scope"
|
||||
>
|
||||
<legend id="legend-text-grant-scope">{{t "form.grant_scope.label"}}</legend>
|
||||
<Rose::Form::HelperText @id="helper-text-grant-scope" @error={{@model.errors.grant_scope_id}}>
|
||||
{{t "form.grant_scope.help"}}
|
||||
</Rose::Form::HelperText>
|
||||
<form.radioGroup @name="grant_scope_id" @selectedValue={{@model.grant_scope_id}} as |radioGroup|>
|
||||
<Rose::Dropdown
|
||||
@text={{concat (t "form.grant_scope.label") ": " this.selectedGrantScope.displayName}}
|
||||
as |dropdown|>
|
||||
{{#each @grantScopes as |grantScope|}}
|
||||
<dropdown.item>
|
||||
<radioGroup.radio
|
||||
@label={{subScope.model.displayName}}
|
||||
@value={{subScope.model.id}}
|
||||
@label={{grantScope.model.displayName}}
|
||||
@value={{grantScope.model.id}}
|
||||
/>
|
||||
</dropdown.item>
|
||||
{{#each subScope.subScopes as |subSubScope|}}
|
||||
<dropdown.item class="indent-2">
|
||||
{{#each grantScope.subScopes as |subScope|}}
|
||||
<dropdown.item class="indent-1">
|
||||
<radioGroup.radio
|
||||
@label={{subSubScope.displayName}}
|
||||
@value={{subSubScope.id}}
|
||||
@label={{subScope.model.displayName}}
|
||||
@value={{subScope.model.id}}
|
||||
/>
|
||||
</dropdown.item>
|
||||
{{#each subScope.subScopes as |subSubScope|}}
|
||||
<dropdown.item class="indent-2">
|
||||
<radioGroup.radio
|
||||
@label={{subSubScope.displayName}}
|
||||
@value={{subSubScope.id}}
|
||||
/>
|
||||
</dropdown.item>
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
</Rose::Dropdown>
|
||||
<Rose::Form::HelperText @id="helper-text-grant-scope" @error={{@model.errors.grant_scope_id}}>
|
||||
{{t "form.grant_scope.help"}}
|
||||
</Rose::Form::HelperText>
|
||||
</form.radioGroup>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
</Rose::Dropdown>
|
||||
</form.radioGroup>
|
||||
</fieldset>
|
||||
|
||||
<form.actions
|
||||
@disabled={{if @model.cannotSave @model.cannotSave}}
|
||||
|
||||
@@ -54,6 +54,14 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fieldset {
|
||||
margin-bottom: sizing.rems(m);
|
||||
|
||||
legend {
|
||||
@extend .rose-form-label;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.rose-table {
|
||||
|
||||
Reference in new issue
Block a user