Rework signin form so correct actions are fired

This commit is contained in:
Jason Williams 2015-05-21 11:12:07 -05:00 committed by Hannah Wolfe
parent dd20790bd9
commit cf239774eb

View File

@ -1,7 +1,7 @@
<div class="gh-flow">
<div class="gh-flow-content-wrap">
<section class="gh-flow-content">
<form id="login" class="gh-signin" method="post" novalidate="novalidate" {{action 'validateAndAuthenticate' on='submit'}}>
<form id="login" class="gh-signin" method="post" novalidate="novalidate" {{action "validateAndAuthenticate" on="submit"}}>
<div class="form-group">
<span class="input-icon icon-mail">
{{gh-trim-focus-input class="gh-input email" type="email" placeholder="Email Address" name="identification" autocapitalize="off" autocorrect="off" tabindex="1" value=model.identification}}
@ -10,10 +10,10 @@
<div class="form-group">
<span class="input-icon icon-lock forgotten-wrap">
{{input class="gh-input password" type="password" placeholder="Password" name="password" tabindex="2" value=model.password}}
<button {{action 'forgotten'}} class="forgotten-link btn btn-link" tabindex="4">Forgot?</button>
<button type="button" {{action "forgotten"}} class="forgotten-link btn btn-link" tabindex="4">Forgot?</button>
</span>
</div>
<button id="login-button" class="login btn btn-blue btn-block" type="submit" tabindex="3" {{action "validateAndAuthenticate"}} disabled={{submitting}}>Sign in</button>
<button id="login-button" class="login btn btn-blue btn-block" type="submit" tabindex="3" disabled={{submitting}}>Sign in</button>
</form>
<p class="main-error">The password fairy does not approve</p>