Added password change option

This commit is contained in:
Will Bradley 2012-09-16 02:27:01 -07:00
parent cd4f689400
commit 5174b4c50c

View File

@ -19,15 +19,19 @@
<%= f.label :email %><br /> <%= f.label :email %><br />
<%= f.email_field :email %> <%= f.email_field :email %>
</div> </div>
<% if @user.id.blank? %> <% if @user.id.blank? || !params[:password].nil? %>
<div class="field"> <div class="field">
<%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br /> <%= f.label :password %><br />
<%= f.password_field :password, :autocomplete => "off" %> <%= f.password_field :password, :autocomplete => "off" %>
</div> </div>
<div class="field"> <div class="field">
<%= f.label :password_confirmation %><br /> <%= f.label :password_confirmation %><br />
<%= f.password_field :password_confirmation %> <%= f.password_field :password_confirmation %>
</div> </div>
<% else %>
<div class="field">
<a href="?password=edit">Change Password</a>
</div>
<% end %> <% end %>
<div class="field"> <div class="field">
<%= f.label :card_id, "Card DB ID" %><br /> <%= f.label :card_id, "Card DB ID" %><br />