forked from fixin.me/fixin.me
20 lines
715 B
Plaintext
20 lines
715 B
Plaintext
<%= labeled_form_for resource, url: user_session_path,
|
|
html: {class: 'main-area', onsubmit: 'formValidate(event)'} do |f| %>
|
|
|
|
<%= f.email_field :email, required: true, size: 30, autofocus: true,
|
|
autocomplete: 'email' %>
|
|
<%= f.password_field :password, required: true, size: 30,
|
|
autocomplete: 'current-password' %>
|
|
|
|
<% if devise_mapping.rememberable? %>
|
|
<%= f.check_box :remember_me %>
|
|
<% end %>
|
|
|
|
<%# /sign_in as HTML; /password as TURBO_STREAM %>
|
|
<%= f.submit t(:sign_in), data: {turbo: false} %>
|
|
|
|
<%= image_button_tag t(:recover_password), 'lock-reset', class: 'auxiliary',
|
|
formaction: user_password_path, formnovalidate: true,
|
|
data: {validate: f.field_id(:email)} %>
|
|
<% end %>
|