Created
October 23, 2024 14:42
-
-
Save SergUdo/48419c913b5ea44ba8a28c6ac03df4d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <% @body_id = 'login' %> | |
| <div class="register_wrap section_padding_b"> | |
| <div class="container"> | |
| <div class="row justify-content-center"> | |
| <div class="col-xl-5 col-lg-7 col-md-9"> | |
| <div class="register_form padding_default shadow_sm" id="existing-customer" data-hook="login"> | |
| <h4 class="title_2 pb-4"><%= Spree.t(:log_in_to_continue) %></h4> | |
| <%= form_for Spree.user_class.new, as: :spree_user, url: spree_login_path, data: { turbo: false } do |f| %> | |
| <div id="password-credentials" class="row"> | |
| <div class="col-12"> | |
| <div class="single_billing_inp"> | |
| <label><%=Spree.t(:email) %><span>*</span></label> | |
| <%= f.email_field :email, placeholder: "[email protected]", value: params.dig(:spree_user, :email) %> | |
| </div> | |
| </div> | |
| <div class="col-12"> | |
| <div class="single_billing_inp"> | |
| <label><%= Spree.t(:password) %><span>*</span></label> | |
| <%= f.password_field :password, placeholder: Spree.t(:password) %> | |
| </div> | |
| </div> | |
| <div class="col-12 mt-2 d-flex justify-content-between align-items-center"> | |
| <% if Spree::Frontend::Config[:remember_me_enabled] %> | |
| <div class="custom_check check_2 d-flex align-items-center"> | |
| <input name="spree_user[remember_me]" type="hidden" value="0" autocomplete="off"> | |
| <input class="check_inp" id="remember_me_checkbox" type="checkbox" value="1" name="spree_user[remember_me]"> | |
| <label class="spree-checkbox-label" for="remember_me_checkbox">Пам'ятати мене</label> | |
| </div> | |
| <% end %> | |
| <% if spree.respond_to?(:recover_password_path) %> | |
| <%= link_to Spree.t(:forgot_password), spree.recover_password_path, class: "text-color" %> | |
| <% end %> | |
| </div> | |
| <div class="col-12 mt-3"> | |
| <%= f.submit Spree.t(:login), class: 'default_btn xs_btn rounded px-4 d-block w-100' %> | |
| </div> | |
| <% end %> | |
| <p class="text-center mt-3 mb-0" data-hook="registration"><%= Spree.t('dont_have_account') %> | |
| <%= link_to Spree.t(:sign_up), spree_signup_path, class: "text-color" %> | |
| </p> | |
| </div> | |
| <div data-hook="login_extras"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment