33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
<div class="container mt-5">
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-6">
|
|
<h2 class="mb-3 text-center">Log in</h2>
|
|
|
|
<%= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'needs-validation', novalidate: true }) do |f| %>
|
|
<div class="mb-3">
|
|
<%= f.label :email, class: 'form-label' %>
|
|
<%= f.email_field :email, autofocus: true, autocomplete: "email", class: 'form-control', placeholder: 'Enter email' %>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<%= f.label :password, class: 'form-label' %>
|
|
<%= f.password_field :password, autocomplete: "current-password", class: 'form-control', placeholder: 'Password' %>
|
|
</div>
|
|
|
|
<% if devise_mapping.rememberable? %>
|
|
<div class="mb-3 form-check">
|
|
<%= f.check_box :remember_me, class: 'form-check-input' %>
|
|
<%= f.label :remember_me, class: 'form-check-label' %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="actions text-center">
|
|
<%= f.submit "Log in", class: 'btn btn-primary' %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= render "devise/shared/links" %>
|
|
</div>
|
|
</div>
|
|
</div>
|