Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {{#bs-form model=contact onSubmit=(route-action "submitMessage" model) as |form|}}
- {{!-- this doesn't work! --}}
- {{#form.element label="Email Address" property="email" as |el|}}
- <div class="input-group">
- <span class="input-group-addon"><i class="fa fa-envelope-o"></i></span>
- <input value={{el.value}} class="form-control" oninput={{action (mut el.value) value="target.value"}} id={{el.id}} type="email">
- </div>
- {{/form.element}}
- {{!-- this works! --}}
- {{form.element controlType="email" label="Email Address" property="email"}}
- {{/bs-form}}
Add Comment
Please, Sign In to add comment