polyglot/app/views/devise/sessions/new.html.erb

33 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2018-08-28 13:34:52 +00:00
<div class="login-container">
<div class="login-content">
<h2>Log in</h2>
2018-08-28 13:34:52 +00:00
<%= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
<div class="form-inputs">
<%= f.input :email,
required: false,
autofocus: true,
input_html: { autocomplete: "email" } %>
<%= f.input :password,
required: false,
input_html: { autocomplete: "current-password" } %>
2018-09-02 00:22:03 +00:00
<div class="flex-inline space-between">
<%= f.label :remember_me %>
<label class="switch">
<%= f.input_field :enable_transcript, as: :boolean if devise_mapping.rememberable? %>
<span class="slider rounded"></span>
</label>
</div>
<%#= f.input :remember_me, as: :boolean if devise_mapping.rememberable? %>
2018-08-28 13:34:52 +00:00
</div>
2018-08-28 13:34:52 +00:00
<div class="form-actions">
2018-09-02 00:22:03 +00:00
<%= f.button :submit, "Log in", class: "login btn btn-primary vertical-margin" %>
2018-08-28 13:34:52 +00:00
</div>
<% end %>
2018-08-28 13:34:52 +00:00
<%= render "devise/shared/links" %>
</div>
</div>