scinote-web/app/views/users/sessions/new.html.erb

51 lines
2.3 KiB
Text
Raw Normal View History

2016-02-12 23:52:43 +08:00
<% provide(:head_title, t("devise.sessions.new.head_title")) %>
2020-03-27 16:43:49 +08:00
<% content_for(:body_class, 'sign-in-layout') %>
<div class="sign-in-container">
<div class="sign-in-form-wrapper">
<div class="center-block center-block-narrow">
<h1 class="log-in-title"><%=t "devise.sessions.new.title" %></h1>
2016-02-12 23:52:43 +08:00
2020-03-27 16:43:49 +08:00
<%- if Rails.configuration.x.enable_user_registration && Rails.configuration.x.linkedin_signin_enabled && @oauth_authorize != true %>
<div class="linkedin-container">
<%= render partial: "users/shared/linkedin_sign_in_links", locals: { resource_name: resource_name } %>
<span><%= t("devise.sessions.new.or") %></span>
</div>
<% end -%>
2016-02-12 23:52:43 +08:00
<% unless Rails.application.config.x.disable_local_passwords %>
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
<div class="input-group form-group sci-input-container">
<%= f.label :email, t("devise.sessions.new.email_field") %>
<%= f.email_field :email, autofocus: true, class: "form-control sci-input-field", placeholder: t("devise.sessions.new.email_placeholder") %>
</div>
2016-02-12 23:52:43 +08:00
<div class="input-group form-group sci-input-container">
<%= f.label :password, t("devise.sessions.new.password_field") %>
<%= f.password_field :password, autocomplete: "off", class: "form-control sci-input-field", placeholder: t("devise.sessions.new.password_placeholder") %>
</div>
2016-02-12 23:52:43 +08:00
<% if devise_mapping.rememberable? && !@simple_sign_in %>
<div class="field remember-me">
<div class="sci-checkbox-container">
<%= f.check_box :remember_me, class: "sci-checkbox" %>
<span class="sci-checkbox-label"></span>
</div>
<%= f.label :remember_me, t("devise.sessions.new.remember_me") %>
2020-03-27 16:43:49 +08:00
</div>
<% end %>
<%= hidden_field_tag(:simple_sign_in, @simple_sign_in) %>
2016-02-12 23:52:43 +08:00
<div class="actions" style="margin-top: 10px; margin-bottom: 10px;">
<%= f.button t("devise.sessions.new.submit"), class: "btn btn-primary log-in-button" %>
</div>
<% end %>
2020-03-27 16:43:49 +08:00
<% end %>
2016-02-12 23:52:43 +08:00
2020-03-27 16:43:49 +08:00
<%= render partial: "users/shared/links", locals: {linkedin_skip: true} unless @simple_sign_in %>
</div>
</div>
2020-07-06 20:52:42 +08:00
</div>
2023-03-09 18:54:58 +08:00
<%= render partial: 'login_disclaimer'%>