FIX: correctly render sql checkboxes (#28328)

This was not using CheckboxGroup and the I18n key was incorrect.
This commit is contained in:
Joffrey JAFFEUX 2024-08-13 10:46:54 +02:00 committed by GitHub
parent 559c9dfe0a
commit bcfb8a5fc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 20 additions and 22 deletions

View File

@ -186,29 +186,27 @@
/>
</form.Container>
<form.Field
@name="auto_revoke"
@disabled={{this.readOnly}}
@showTitle={{false}}
@title={{i18n "admin.badges.auto_revoke_label"}}
as |field|
>
<field.Checkbox>
{{i18n "admin.badges.auto_revoke"}}
</field.Checkbox>
</form.Field>
<form.CheckboxGroup as |group|>
<group.Field
@name="auto_revoke"
@disabled={{this.readOnly}}
@showTitle={{false}}
@title={{i18n "admin.badges.auto_revoke"}}
as |field|
>
<field.Checkbox />
</group.Field>
<form.Field
@name="target_posts"
@disabled={{this.readOnly}}
@title={{i18n "admin.badges.target_posts_label"}}
@showTitle={{false}}
as |field|
>
<field.Checkbox>
{{i18n "admin.badges.target_posts"}}
</field.Checkbox>
</form.Field>
<group.Field
@name="target_posts"
@disabled={{this.readOnly}}
@title={{i18n "admin.badges.target_posts"}}
@showTitle={{false}}
as |field|
>
<field.Checkbox />
</group.Field>
</form.CheckboxGroup>
<form.Field
@name="trigger"