23 lines
704 B
Plaintext

<h2>Log in</h2>
<%= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: "work-area" } ) do |f| %>
<%= f.label :email %>:<%= f.email_field :email, autofocus: true, autocomplete: "email", class:"input" %>
<br/>
<%= f.label :password %>:<%= f.password_field :password, autocomplete: "current-password", class: "input" %>
<br/>
<%= f.label :otp_attempt %>:<%= f.password_field :otp_attempt, autocomplete: "OTP Code", class: "input" %>
<br/>
<% if devise_mapping.rememberable? %>
<%= f.label :remember_me %><%= f.check_box :remember_me %>
<% end %>
<br/>
<%= f.submit "Log in", class: "button" %>
<% end %>
<%= render "devise/shared/links" %>