AlchemyCMS/alchemy-devise

View on GitHub
app/views/alchemy/admin/user_sessions/new.html.erb

Summary

Maintainability
Test Coverage
<%= content_for :stylesheets do %>
  <%= stylesheet_link_tag "alchemy-devise" %>
<% end %>

<div class="login_signup_box">
  <%= image_tag 'alchemy/alchemy-logo.svg', id: 'logo' %>
  <%= alchemy_form_for :user, url: {action: 'create'}, id: 'login', data: { turbo: false } do |f| %>
    <%= f.input Devise.authentication_keys.first, autofocus: true %>
    <%= f.input :password %>
    <div class="input link">
      <small>
        <%= link_to Alchemy.t('Forgot your password?'), admin_new_password_path %>
      </small>
    </div>
    <div class="submit">
      <button class="secondary"><%= Alchemy.t(:login) %></button>
    </div>
  <% end %>
</div>