Cleaned up user reg and session forms

This commit is contained in:
2013-01-22 13:52:40 -05:00
parent 1d25195f41
commit 75f594f9ea
2 changed files with 12 additions and 19 deletions

View File

@@ -5,23 +5,15 @@
<%= devise_error_messages! %> <%= devise_error_messages! %>
</div> </div>
<div style="float:right; width:45%; padding-left:30px; border-left:1px solid #e2e2e2;"> <div style="float:right; width:45%; padding-left:30px; border-left:1px solid #e2e2e2;">
<%= form_for("user", :as => resource_name, :url => registration_path("user")) do |f| %> <%= form_for("user", :as => resource_name, :url => registration_path("user")) do |f| %>
<p> <%= f.label :username %>
Username: <br /> <%= f.text_field :username, :autocomplete => "off" %><br />
<%= f.text_field :username, :autocomplete => "off" %><br /> <%= f.label :email %>
</p> <%= f.text_field :email, :autocomplete => "off" %><br />
<p> <%= f.label :password %>
Email Address: <br /> <%= f.password_field :password, :autocomplete => "off" %><br />
<%= f.text_field :email, :autocomplete => "off" %><br /> <%= f.label :password_confirmation %>
</p> <%= f.password_field :password_confirmation, :autocomplete => "off" %><br />
<p>
Password:<br />
<%= f.password_field :password, :autocomplete => "off" %><br />
</p>
<p>
Confirm Password:<br />
<%= f.password_field :password_confirmation, :autocomplete => "off" %><br />
</p>
<p><%= f.submit "Sign up", :class=> 'btn btn-primary' %></p> <p><%= f.submit "Sign up", :class=> 'btn btn-primary' %></p>
<% end %> <% end %>
</div> </div>

View File

@@ -24,8 +24,9 @@
</div> </div>
<div style="float:right; width:45%; height:195px; padding-left:30px; border-left:1px solid #e2e2e2;"> <div style="float:right; width:45%; height:195px; padding-left:30px; border-left:1px solid #e2e2e2;">
<%= form_for("user", :url => user_session_path) do |f| %> <%= form_for("user", :url => user_session_path) do |f| %>
<p><%= f.text_field :username , :value => "username" %></p> <%= f.text_field :username , :value => "username" %>
<p><%= f.password_field :password, :value => "password" %></p> <%= f.password_field :password, :value => "password" %>
<br/>
<%= f.submit 'Sign in', :class =>'btn btn-primary' %> <%= f.submit 'Sign in', :class =>'btn btn-primary' %>
<% end %> <% end %>
</div> </div>