You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
935 B

<h2 class="text-center text-white">Log in</h2>
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
<div class="mb-3">
<label for="exampleFormControlInput1" class="form-label"><%= f.label :email %></label>
<%= f.email_field :email, autofocus: true, autocomplete: "email", class: "form-control" %>
</div>
<div class="mb-3">
<label for="exampleFormControlInput1" class="form-label"><%= f.label :password %></label>
<%= f.password_field :password, autocomplete: "current-password", class: "form-control" %>
</div>
<% if devise_mapping.rememberable? %>
<div class="pl-0 mb-3">
<%= f.check_box :remember_me, class: "orm-check-input" %>
<%= f.label :remember_me, class: "form-check-label" %>
</div>
<% end %>
<div class="d-grid gap-2 mb-3">
<%= f.submit "Log in", class: "btn btn-danger" %>
</div>
<% end %>
<%= render "devise/shared/links" %>