2019-08-19 13:52:26 +02:00
|
|
|
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
2022-06-05 11:40:43 +02:00
|
|
|
<h2><%= t('common.forms.auth.log_in') %></h2>
|
2019-09-19 18:30:29 +02:00
|
|
|
|
2019-08-19 13:52:26 +02:00
|
|
|
<div class="form-group">
|
2019-09-19 18:30:29 +02:00
|
|
|
<%= f.label :email, class: "sr-only" %>
|
2022-06-05 11:40:43 +02:00
|
|
|
<%= f.email_field :email,
|
|
|
|
|
autocomplete: "email",
|
|
|
|
|
placeholder: t('common.forms.auth.email'),
|
|
|
|
|
required: true,
|
|
|
|
|
class: "form-control" %>
|
2019-08-19 13:52:26 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
2019-09-19 18:30:29 +02:00
|
|
|
<%= f.label :password, class: "sr-only" %>
|
2022-06-05 11:40:43 +02:00
|
|
|
<%= f.password_field :password,
|
|
|
|
|
autocomplete: "current-password",
|
|
|
|
|
placeholder: t('common.forms.auth.password'),
|
|
|
|
|
required: true,
|
|
|
|
|
class: "form-control" %>
|
2019-08-19 13:52:26 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<% if devise_mapping.rememberable? %>
|
|
|
|
|
<div class="form-group form-check">
|
|
|
|
|
<%= f.check_box :remember_me, class: "form-check-input" %>
|
2022-06-05 11:40:43 +02:00
|
|
|
<%= f.label t('common.forms.auth.remember_me'), class: "form-check-label" %>
|
2019-08-19 13:52:26 +02:00
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div class="actions">
|
2022-06-05 11:40:43 +02:00
|
|
|
<%= f.submit t('common.forms.auth.log_in'), class: "btn btn-dark btn-block" %>
|
2019-08-19 13:52:26 +02:00
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
2019-09-19 18:30:29 +02:00
|
|
|
<%= render "devise/shared/links" %>
|