hhff/spree-ember

View on GitHub
packages/auth/blueprints/spree-ember-auth-component/files/app/templates/components/spree-auth.hbs

Summary

Maintainability
Test Coverage
<form {{action 'submit' on='submit'}}>
  <fieldset>
    {{#if isSignup}}
      <legend>Sign Up</legend>
    {{else}}
      <legend>Sign In</legend>
    {{/if}}
    {{spree-input value=identification
                  errors=errors
                  attributeName="Email"}}
    {{input placeholder="Password" type="Password" value=password}}
    {{#if isSignup}}
      {{input placeholder="Password Confirmation" type="Password" value=passwordConfirmation}}
    {{/if}}
    <button type="submit" class="expand">Continue</button>
    {{#if isSignup}}
      {{#link-to 'spree.signin'}}Or sign in here.{{/link-to}}
    {{else}}
      {{#link-to 'spree.signup'}}Or create a new account.{{/link-to}}
    {{/if}}
  </fieldset>
</form>