Skip to content

Commit 7432a15

Browse files
committed
Merge branch 'fix-login-view' into update-rspec
2 parents f805084 + 69ef17a commit 7432a15

File tree

1 file changed

+18
-15
lines changed
  • lib/active_admin/views/templates/active_admin/devise/sessions

1 file changed

+18
-15
lines changed
Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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>
34

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+
%>
1617

17-
<%= render :partial => "devise/shared/links" %>
18+
<%= render :partial => "devise/shared/links" %>
19+
</div>
20+
1821
</div>

0 commit comments

Comments
 (0)