Skip to content

Instantly share code, notes, and snippets.

@mmurray
Created September 8, 2010 21:52
Show Gist options
  • Save mmurray/570902 to your computer and use it in GitHub Desktop.
Save mmurray/570902 to your computer and use it in GitHub Desktop.
<div class="round-box black">
<div class="loginForm">
<h2>Login</h2>
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
<table>
<tr>
<td><%= f.label :email %></td>
<td><%= f.text_field :email %></td>
</tr>
<tr>
<td><%= f.label :password %></td>
<td><%= f.password_field :password %></td>
</tr>
</table>
<% if devise_mapping.rememberable? -%>
<p><%= f.check_box :remember_me %> <%= f.label :remember_me %></p>
<% end -%>
<div class="form-buttons">
<%= f.submit "login", :class => "blueButton round-box" %>
<input type="hidden" name="next" value="{{ next }}" />
</div>
<% end -%>
<%= render :partial => "devise/shared/links" %>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment