mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: form-kit improvements (#27966)
- correctly support @title on fields - correctly support @subtitle on fields - improves error message when a field name is incorrect in assertions
This commit is contained in:
@@ -16,7 +16,13 @@
|
||||
<form.Field @title="Before" @name="before" as |field|>
|
||||
<field.Input @before="https://" />
|
||||
</form.Field>
|
||||
<form.Field @title="Secret" @name="secret" as |field|>
|
||||
<form.Field
|
||||
@title="Secret"
|
||||
@subtitle="Another secret"
|
||||
@name="secret"
|
||||
@description="An important password"
|
||||
as |field|
|
||||
>
|
||||
<field.Password />
|
||||
</form.Field>
|
||||
</Form>
|
||||
|
||||
Reference in New Issue
Block a user