Guest User

Untitled

a guest
Jan 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. {{#bs-form model=contact onSubmit=(route-action "submitMessage" model) as |form|}}
  2.  
  3. {{!-- this doesn't work! --}}
  4. {{#form.element label="Email Address" property="email" as |el|}}
  5. <div class="input-group">
  6. <span class="input-group-addon"><i class="fa fa-envelope-o"></i></span>
  7. <input value={{el.value}} class="form-control" oninput={{action (mut el.value) value="target.value"}} id={{el.id}} type="email">
  8. </div>
  9. {{/form.element}}
  10.  
  11. {{!-- this works! --}}
  12. {{form.element controlType="email" label="Email Address" property="email"}}
  13.  
  14. {{/bs-form}}
Add Comment
Please, Sign In to add comment