forked from OpenNeo/impress
Emi Matchu
2cc6cee542
Got the icon and background style from Neopets.com! I didn't quite copy the whole button style, both because getting it to play nice with our existing styles didn't *immediately* work, but also because I think this works out as a really good compromise between our two styles anyway!
39 lines
1 KiB
Text
39 lines
1 KiB
Text
<h2>Log in</h2>
|
|
|
|
<% if can_use_neopass %>
|
|
<%= button_to auth_user_neopass_omniauth_authorize_path(intent: "login"),
|
|
data: {turbo: false}, class: "log-in-with-neopass-button" do
|
|
%>
|
|
Log in with
|
|
<%= image_tag "neopass_icon.png", alt: "NeoPass", class: "neopass-icon" %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
|
<div class="field">
|
|
<%= f.label :name, 'Username' %><br />
|
|
<%= f.text_field :name, autofocus: true, autocomplete: "username" %>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<%= f.label :password %><br />
|
|
<%= f.password_field :password, autocomplete: "current-password" %>
|
|
</div>
|
|
|
|
<% if devise_mapping.rememberable? %>
|
|
<div class="field">
|
|
<%= f.check_box :remember_me %>
|
|
<%= f.label :remember_me %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="actions">
|
|
<%= f.submit "Log in" %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= render "devise/shared/links" %>
|
|
|
|
<% content_for :stylesheets do %>
|
|
<%= stylesheet_link_tag "devise/sessions/new" %>
|
|
<% end %>
|