app/views/users/sessions/new.html.erb in mcms_authentication-0.0.2 vs app/views/users/sessions/new.html.erb in mcms_authentication-0.0.3

- old
+ new

@@ -1,41 +1,28 @@ <!-- -************************************************************************************************************** - FileName: new.html.erb + @FileName: new.html.erb - Company Name and Copyright information: Mindfire Solutions Pvt. Ltd. + @Company Name and Copyright information: Mindfire Solutions Pvt. Ltd. - Creator name and date: Indranil Mukherjee 04/06/2012 + @Creator name and date: Indranil Mukherjee 04/06/2012 - Description of the file contents: Sign in page + @Description of the file contents: Sign in page -************************************************************************************************************** --> +<% content_for :head do %> +<%= javascript_include_tag "application","authentication_global","validate_login" %> +<%= stylesheet_link_tag "authentication_global",:media => "all" %> +<% end %> +<p class="notice"></p> <div class="new-session" > <h2><%= t(:sign_in,:default => "Please Sign in") %></h2> <div id="logincontainer" style="margin-top: 10px;"> - - <!--<div style="visibility: visible; opacity: 1;margin-top: 20px;margin-left: 5px;margin-right: 5px;margin-bottom: 20px; " class="mcms_flash mcms_flash_notice" id="mcms_flash"> - - <%#= t(:default_uname) %> '<strong></strong>' - - <a id="mcms_flash_close" href="#">Close</a> - - - - </div>--> - - <!-- - - The following form is responsible for sign in - - --> <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> <div class="field session-username clearfix"><%= f.label :email %><br /> @@ -49,29 +36,35 @@ </div> <% if devise_mapping.rememberable? -%> - <div class="remembers"> + <div style="width: 100%;"> - <div style="float: left"><%= f.check_box :remember_me %> <%= f.label :remember_me %></div> + <div style="float: left;width: 12%;margin-top:20px;" > + <div style="float: left"><%= f.check_box :remember_me %></div> + <div style="float: right;margin-top: -20px;"><%= f.label :remember_me %></div> + <div style="clear: both"></div> + </div> - <div style="float: right; font-weight: normal;"><%= link_to "Forgot your password?", new_password_path(resource_name) ,:style => "margin-right: 5px;" %></div> + <div style="float: right; font-weight: normal;text-decoration: none"><%= link_to "Forgot your password?", new_password_path(resource_name) ,:style => "margin-right: 5px;" %></div> - <div style="clear: both"/> + <div style="clear: both"></div> </div> <% end -%> - <div class="form-actions"> + <div class="form-actions"> - <div class="form-actions-left"><%= f.submit "Sign in" ,:class => "button"%> + <div class="form-actions-left"><%= f.submit "Sign in" ,:class => "button"%><%= image_tag "/assets/ajax-loader.gif",:id => "login_loader",:style => "display:none;padding-left:10px;" %> </div> <div class="form-actions-right"> - + <% if User.all.empty? %> + <%= link_to "First User" , "/mcms/first_user" %> + <% end %> </div> </div> <% end %> \ No newline at end of file