Closed Nininea-zz closed 10 years ago
In my current app, I ended up doing this:
<h4>Login</h4>
{{#em-form model=model submit_button=false}}
{{em-input property='email' label="Email" placeholder="Email address..."}}
{{em-input property='password' label="Password" placeholder="Password..."}}
<div class="form-actions">
<input type="submit" class="btn btn-primary" value="Login">
</div>
{{/em-form}}
You better bind the disabled
field of the submit button to isValid
otherwise you loose the option of having it disabled when the form is invalid.
I keep this open so I can document it.
@Emerson , @asaf thanks :)
@Nininea Sure, I documented it here: http://indexiatech.github.io/ember-forms/#/controls/custom-submit
how can i add custom submit button?