Sha256: 090e7c0d54a34561c9e0d707a78d79c88e56a1a14bf4b8a1f9f80ef1cbf1a409

Contents?: true

Size: 1.77 KB

Versions: 3

Compression:

Stored size: 1.77 KB

Contents

.container
  / Outer Row
  .row.justify-content-center
    .col-xl-10.col-lg-12.col-md-9
      .card.card-default.o-hidden.border-0.shadow-lg.my-5
        .card-body.p-0
          / Nested Row within Card Body
          .row
            .col-lg-6.d-none.d-lg-block.bg-password-image
            .col-lg-6
              .p-5
                .text-center
                  %h1.h4.text-gray-900.mb-2
                    Reset your Password
                = edit_form_tag("#{settings.map_path}/auth/reset-password") do
                  %input{ name: 'token', value: params[:token], type: 'hidden' }
                  - 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_control(:password, identity, type: 'password', placeholder: 'Your password', group: 'identity')
                  = form_control(:password_confirmation, identity, type: 'password', label: 'Confirm Password', placeholder: 'Confirm your password', group: 'identity')
                  %button.btn.btn-primary{ type: 'submit' }
                    Reset Password
                %hr
                - if policy(::Ditty::User).register?
                  .text-center
                    %a.small{ href: "#{settings.map_path}/auth/register" } Create an Account!
                .text-center
                  %a.small{ href: "#{settings.map_path}/auth/login" } Already have an account? Login!

      .row.justify-content-center
        .col-xl-10.col-lg-12.col-md-9

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ditty-0.11.1 views/auth/reset_password.haml
ditty-0.10.2 views/auth/reset_password.haml
ditty-0.10.1 views/auth/reset_password.haml