mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
* Bump ruby to 2.7.8 * Bump listen to 3.5.1 (remove dependency on ruby_dep) * Bump ruby to 3.0.6 * Fix I18n.translate arguments: from hash to keyword arguments
44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
|
<h2><%= t('common.forms.auth.log_in') %></h2>
|
|
|
|
<div class="form-group">
|
|
<%= f.label :email, class: "sr-only" %>
|
|
<%= f.email_field :email,
|
|
autocomplete: "email",
|
|
placeholder: t('common.forms.auth.email'),
|
|
required: true,
|
|
class: "form-control" %>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<%= f.label :password, class: "sr-only" %>
|
|
<%= f.password_field :password,
|
|
autocomplete: "current-password",
|
|
placeholder: t('common.forms.auth.password'),
|
|
required: true,
|
|
class: "form-control" %>
|
|
</div>
|
|
|
|
<% if devise_mapping.rememberable? %>
|
|
<div class="form-group form-check">
|
|
<%= f.check_box :remember_me, class: "form-check-input" %>
|
|
<%= f.label :remember_me, t('common.forms.auth.remember_me'), class: "form-check-label" %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="actions">
|
|
<%= f.submit t('common.forms.auth.log_in'), class: "btn btn-dark btn-block" %>
|
|
</div>
|
|
|
|
<% if not @o_auths.empty? %>
|
|
<hr />
|
|
<% @o_auths.each do |o_auth| %>
|
|
<p>
|
|
<%= link_to t('common.forms.auth.log_in_with', o_auth: o_auth.name),
|
|
o_auth_start_path(o_auth, reason: 'user') %>
|
|
</p>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%= render "devise/shared/links" %> |