mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Before there was a hack in place to not use materialize checkboxes because the actual checkbox didn't show up. This re-arranges all the checkboxes I could find to work with materialize, thus allowing the hack to be safely removed. The forum (namely preferences) continue to use the hacky checkbox, but that hack is maintained separately and still seems to work with this change.
34 lines
842 B
Plaintext
34 lines
842 B
Plaintext
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
|
|
|
<h4><%= defined?(title_override) ? title_override : 'Log in' %></h4>
|
|
|
|
<div class="field">
|
|
<%= f.label :email %><br />
|
|
<%= f.email_field :email, autofocus: true %>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<%= f.label :password %><br />
|
|
<%= f.password_field :password, autocomplete: "off" %>
|
|
</div>
|
|
|
|
<div class="actions center">
|
|
<div class="col s6">
|
|
<% if devise_mapping.rememberable? -%>
|
|
<%= f.label :remember_me do %>
|
|
<%= f.check_box :remember_me %>
|
|
<span>Remember me</span>
|
|
<% end %>
|
|
<% end -%>
|
|
</div>
|
|
<div class="col s6">
|
|
<%= f.submit "Log in", class: 'btn blue' %>
|
|
</div>
|
|
|
|
<p class="center">
|
|
<br />
|
|
<%= render "devise/shared/links" %>
|
|
</p>
|
|
</div>
|
|
<% end %>
|