mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 17:26:07 +08:00
UX: move admin flag form to form-kit (#28187)
Rewrite the admin flag form to use FormKit. This is a draft because waiting for Checkbox improvements.
This commit is contained in:

committed by
GitHub

parent
2b577950af
commit
300ef67481
@ -79,11 +79,25 @@
|
||||
</Form>
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="Checkbox">
|
||||
<StyleguideExample @title="CheckboxGroup">
|
||||
<Form as |form|>
|
||||
<form.Field @title="Contract" @name="contract" as |field|>
|
||||
<field.Checkbox>Accept the contract</field.Checkbox>
|
||||
</form.Field>
|
||||
<form.CheckboxGroup @title="I give explicit permission" as |checkboxGroup|>
|
||||
<checkboxGroup.Field
|
||||
@title="Use my email for any purpose."
|
||||
@name="contract"
|
||||
as |field|
|
||||
>
|
||||
<field.Checkbox>Including signing up for services I can't unsubscribe
|
||||
to.</field.Checkbox>
|
||||
</checkboxGroup.Field>
|
||||
<checkboxGroup.Field
|
||||
@title="Sign my soul away."
|
||||
@name="contract2"
|
||||
as |field|
|
||||
>
|
||||
<field.Checkbox>Will severly impact the afterlife experience.</field.Checkbox>
|
||||
</checkboxGroup.Field>
|
||||
</form.CheckboxGroup>
|
||||
</Form>
|
||||
</StyleguideExample>
|
||||
|
||||
|
Reference in New Issue
Block a user