Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

wrap login div in #active_admin_content, fixes style in 96c29a2

  • Loading branch information...
commit 69ef17a2b53c34eca4416227affb938176a06ff0 1 parent f805084
Jeremy Ruppel jeremyruppel authored
33 lib/active_admin/views/templates/active_admin/devise/sessions/new.html.erb
... ... @@ -1,18 +1,21 @@
1   -<div id="login">
2   - <h2><%= title "#{ActiveAdmin.site_title} Login" %></h2>
  1 +<div id="active_admin_content">
  2 + <div id="login">
  3 + <h2><%= title "#{ActiveAdmin.site_title} Login" %></h2>
3 4
4   - <% scope = Devise::Mapping.find_scope!(resource_name) %>
5   - <%= active_admin_form_for(resource, :as => resource_name, :url => send(:"#{scope}_session_path"), :html => { :id => "session_new" }) do |f|
6   - f.inputs do
7   - Devise.authentication_keys.each { |key| f.input key }
8   - f.input :password
9   - f.input :remember_me, :as => :boolean, :if => false #devise_mapping.rememberable? }
10   - end
11   - f.buttons do
12   - f.commit_button "Login"
13   - end
14   - end
15   - %>
  5 + <% scope = Devise::Mapping.find_scope!(resource_name) %>
  6 + <%= active_admin_form_for(resource, :as => resource_name, :url => send(:"#{scope}_session_path"), :html => { :id => "session_new" }) do |f|
  7 + f.inputs do
  8 + Devise.authentication_keys.each { |key| f.input key }
  9 + f.input :password
  10 + f.input :remember_me, :as => :boolean, :if => false #devise_mapping.rememberable? }
  11 + end
  12 + f.buttons do
  13 + f.commit_button "Login"
  14 + end
  15 + end
  16 + %>
16 17
17   - <%= render :partial => "devise/shared/links" %>
  18 + <%= render :partial => "devise/shared/links" %>
  19 + </div>
  20 +
18 21 </div>

0 comments on commit 69ef17a

Please sign in to comment.
Something went wrong with that request. Please try again.