Sha256: a9dfacbdda77b0f3980791d6ea8f5b5fc7d239fdd3a81fb47afff5a11008b346

Contents?: true

Size: 1.6 KB

Versions: 5

Compression:

Stored size: 1.6 KB

Contents

- if identity.errors[:password] && identity.errors[:password].include?('is not strong enough')
  .alert.alert-warning
    %p Make sure your password is at least 8 characters long, and including the following
    %ul
      %li Upper- and lowercase letters
      %li Numbers
      %li Special Characters

= form_tag("#{settings.map_path}/auth/register/identity", attributes: { class: 'user' }) do
  .form-group
    %input.form-control.form-control-user{ name: 'identity[username]', type: 'email', placeholder: 'Email Address', class: identity.errors[:username] ? 'is-invalid' : 'is-valid' }
    - if identity.errors[:username]
      .invalid-feedback= identity.errors[:username].join(', ')
  .form-group.row
    .col-sm-6.mb-3.mb-sm-0
      %input.form-control.form-control-user{ name: 'identity[password]', type: 'password', placeholder: 'Password', class: identity.errors[:password] ? 'is-invalid' : 'is-valid' }
      - if identity.errors[:password]
        .invalid-feedback= identity.errors[:password].join(', ')
    .col-sm-6
      %input.form-control.form-control-user{ name: 'identity[password_confirmation]', type: 'password', placeholder: 'Repeat Password', class: identity.errors[:password_confirmation] ? 'is-invalid' : 'is-valid' }
      - if identity.errors[:password_confirmation]
        .invalid-feedback= identity.errors[:password_confirmation].join(', ')

  %button.btn.btn-primary.btn-user.btn-block{ type: 'submit' } Register
%hr
.text-center
  %a.small{ href: "#{settings.map_path}/auth/forgot-password" } Forgot Password?
.text-center
  %a.small{ href: "#{settings.map_path}/auth/login" } Already have an account? Login!

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ditty-0.11.1 views/auth/register_identity.haml
ditty-0.10.2 views/auth/register_identity.haml
ditty-0.10.1 views/auth/register_identity.haml
ditty-0.9.1 views/auth/register_identity.haml
ditty-0.9.0 views/auth/register_identity.haml