UPDATE: According to the author, this addon is not maintained any more (see comment below). If you are aware of any good alternatives, please let us know.
One of my least favorite things to do in a web app is create forms, this add-on makes it slightly more enjoyable. Your form could look like this:
1 2 3 4 5 6 7 8 9 10 11 12 |
{{#form-for model}} {{input firstName}} {{input lastName}} {{input bio as="text"}} {{input country as="select" collection="App.countries" selection="country" optionValuePath="content.id" optionLabelPath="content.name" prompt="Select Country" }} {{/form-for}} |
You can have labels:
1 |
{{input firstName label="Your Name"}} |
Or a placeholder:
1 |
{{input firstName placeholder="Enter your first name"}} |
or specify a type:
1 |
{{input-field bio as="text"}} |
Possible values for ‘as’:
- text – renders a textarea input
- password
- url
- color
- tel
- search
- hidden
- checkbox
There is more to this add-on, check out the documentation.