Browse files

add devise template(s)

  • Loading branch information...
1 parent 04be064 commit 8e6e9bb880eb29b9ce385ae5ba679dd518a044b6 Jared Howard committed Mar 19, 2012
Showing with 58 additions and 0 deletions.
  1. +26 −0 app/views/devise/sessions/new.html.erb
  2. +32 −0 app/views/layouts/active_admin_logged_out.html.erb
View
26 app/views/devise/sessions/new.html.erb
@@ -0,0 +1,26 @@
+<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
+ <fieldset class="inputs">
+ <ol>
+ <li class="email required" id="user_email_input">
+ <%= f.label :email, "Email#{required_mark}".html_safe %>
+ <%= f.email_field :email, :maxlength => 255 %>
+ </li>
+ <li class="password optional" id="user_password_input">
+ <%= f.label :password %>
+ <%= f.password_field :password %>
+ </li>
+<% if devise_mapping.rememberable? -%>
+ <li class="boolean optional" id="user_remember_me_input">
+ <%= f.label :remember_me, "#{f.check_box(:remember_me)}Remember me".html_safe %>
+ </li>
+<% end -%>
+ </ol>
+ </fieldset>
+ <fieldset class="buttons">
+ <ol>
+ <li class="commit"><%= f.submit "Login", :class => 'create' %></li>
+ </ol>
+ </fieldset>
+<% end %>
+
+<%= render "links" %>
View
32 app/views/layouts/active_admin_logged_out.html.erb
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
+ <meta name="robots" content="noindex, nofollow">
+ <title><%= content_for?(:page_title) ? yield(:page_title) : 'LeadApp Administration Login' %></title>
+ <%= stylesheet_link_tag "admin_theme", :media => "all" %>
+ <%= javascript_include_tag "admin_theme" %>
+ <%= csrf_meta_tags %>
+</head>
+
+<body class="logged_out new">
+ <div id="wrapper">
+ <div id="content_wrapper">
+<% unless flash.empty? -%>
+<% flash.each do |type, message| -%>
+ <div class="flash flash_<%= type %>"><%= message %></div>
+<% end -%>
+<% end -%>
+ <div id="active_admin_content">
+ <div id="login">
+ <h2>LeadApp Administration Login</h2>
+ <%= yield %>
+ </div>
+ </div>
+ </div>
+ <div id="footer">
+ <p>Rails is running in the <strong><%= Rails.env %></strong> environment.</p>
+ </div>
+ </div>
+</body>
+</html>

0 comments on commit 8e6e9bb

Please sign in to comment.