Skip to content

Commit

Permalink
improved styles
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed May 16, 2017
1 parent 1471621 commit 68b7a0a
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/components/password/forgot-password.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { Component, set, get, inject: { service } } = Ember;
import { task } from 'ember-concurrency';

export default Component.extend({
classNames: ['forgot-password-form'],
classNames: ['form--centered', 'forgot-password-form'],

/**
* @property flashMessages
Expand Down
2 changes: 1 addition & 1 deletion app/components/password/reset-password.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { Component, set, get, inject: { service } } = Ember;
import { task } from 'ember-concurrency';

export default Component.extend({
classNames: ['reset-password-form'],
classNames: ['form--centered', 'reset-password-form'],

/**
* @property flashMessages
Expand Down
2 changes: 1 addition & 1 deletion app/styles/layout/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ form {
margin: 5px;
}

.login-form, .signup-form {
.login-form, .signup-form, .reset-password-form, .forgot-password-form {
.input-group {
margin: 0 0 1em 0;
}
Expand Down
7 changes: 4 additions & 3 deletions app/templates/components/login-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
<div class="input-group">
{{input name="password" id="password" placeholder="Password" type="password" value=password}}
</div>
{{#link-to 'password.forgot' classNames="t-forgot-password"}}
Forgot password
{{/link-to}}

<div class="input-group">
<button id="login" class="default" type="submit" disabled={{isLoading}}>
Expand All @@ -23,6 +20,10 @@
</button>
</div>

{{#link-to 'password.forgot' classNames="t-forgot-password"}}
Forgot password
{{/link-to}}

{{#if errors}}
{{#each errors.errors as |error|}}
<p class="error">{{error.detail}}</p>
Expand Down
6 changes: 5 additions & 1 deletion app/templates/components/password/forgot-password.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@

<p data-test-id="forgot-password-header">Enter your email and we'll send you a link to reset your password</p>

{{input name="email" autocapitalize="off" type="text" value=email}}
<div class="input-group">
{{#auto-focus}}
{{input name="email" autocapitalize="off" type="text" value=email}}
{{/auto-focus}}
</div>

<div class="input-group">
<button id="reset-password" class="default" type="submit" disabled={{isLoading}} {{action "forgotPassword" email}}>
Expand Down
4 changes: 3 additions & 1 deletion app/templates/components/password/reset-password.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<form>
<div class="input-group">
<label data-test-id="password-label">Password</label>
{{input id="password" autofocus="true" class="has-progress" name="password" type="password" autocomplete="off" value=password}}
{{#auto-focus}}
{{input id="password" autofocus="true" class="has-progress" name="password" type="password" autocomplete="off" value=password}}
{{/auto-focus}}
</div>

<div class="input-group">
Expand Down

0 comments on commit 68b7a0a

Please sign in to comment.