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.Container>
<form.Field <form.CheckboxGroup as |group|>
<group.Field
@name="auto_revoke" @name="auto_revoke"
@disabled={{this.readOnly}} @disabled={{this.readOnly}}
@showTitle={{false}} @showTitle={{false}}
@title={{i18n "admin.badges.auto_revoke_label"}} @title={{i18n "admin.badges.auto_revoke"}}
as |field| as |field|
> >
<field.Checkbox> <field.Checkbox />
{{i18n "admin.badges.auto_revoke"}} </group.Field>
</field.Checkbox>
</form.Field>
<form.Field <group.Field
@name="target_posts" @name="target_posts"
@disabled={{this.readOnly}} @disabled={{this.readOnly}}
@title={{i18n "admin.badges.target_posts_label"}} @title={{i18n "admin.badges.target_posts"}}
@showTitle={{false}} @showTitle={{false}}
as |field| as |field|
> >
<field.Checkbox> <field.Checkbox />
{{i18n "admin.badges.target_posts"}} </group.Field>
</field.Checkbox> </form.CheckboxGroup>
</form.Field>
<form.Field <form.Field
@name="trigger" @name="trigger"