From 46c1af43cd82b6e93b461cb7d96ec72beb2089ed Mon Sep 17 00:00:00 2001 From: Ken Johnson Date: Wed, 22 May 2013 03:41:28 -0400 Subject: [PATCH] okay, I swear, last commit of the night. This adds a pwd confirmation field to account update as well as the relevant js --- app/views/users/account_settings.html.erb | 55 ++++++++++++++++++++++- 1 file changed, 53 insertions(+), 2 deletions(-) diff --git a/app/views/users/account_settings.html.erb b/app/views/users/account_settings.html.erb index a9c0d18..b2771dc 100644 --- a/app/views/users/account_settings.html.erb +++ b/app/views/users/account_settings.html.erb @@ -12,26 +12,36 @@
- <%= form_for @user do |f|%> + <%= form_for @user, :html => {:id => "account_edit"} do |f|%>
<%= f.label :email, nil, {:class => "control-label"}%> <%= f.text_field :email, {:class => "span12"}%>
+
<%= f.label :first_name, nil, {:class => "control-label"}%> <%= f.text_field :first_name, {:class => "span12"} %>
+
<%= f.label :last_name, nil, {:class => "control-label"}%> <%= f.text_field :last_name, {:class => "span12"} %>
+
<%= f.label :password, nil, {:class => "control-label"}%> <%= f.password_field :password, {:class => "span12", :placeholder => "Enter Password"}%>
+ +
+ <%= f.label :password_confirmation, nil, {:class => "control-label"}%> + <%= f.password_field :password_confirmation, {:class => "span12", :placeholder => "Enter Password"} %> +
+
- <%= f.submit "Submit", {:class => "btn btn-info pull-right"} %> + <%= f.submit "Submit", {:id => 'submit_button', :class => "btn btn-info pull-right"} %>
+
<% end %> @@ -41,6 +51,47 @@
+ +