aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/user/signchange.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/user/signchange.rhtml')
-rw-r--r--app/views/user/signchange.rhtml30
1 files changed, 30 insertions, 0 deletions
diff --git a/app/views/user/signchange.rhtml b/app/views/user/signchange.rhtml
new file mode 100644
index 000000000..8f6fe663c
--- /dev/null
+++ b/app/views/user/signchange.rhtml
@@ -0,0 +1,30 @@
+<% @title = "Change password" %>
+
+<% raise "internal error" if not @user %>
+
+<div id="change_password">
+
+<% form_tag({:action => "signchange"}, {:id => "signchange_form"}) do %>
+ <%= foi_error_messages_for :user %>
+
+ <div class="form_note">
+ <h1>Change your password</h1>
+ </div>
+
+ <label class="form_label" for="user_password">New password:</label>
+ <%= password_field 'user', 'password', { :size => 15 } %>
+ </p>
+
+ <p>
+ <label class="form_label" for="user_password_confirmation">New password: (again)</label>
+ <%= password_field 'user', 'password_confirmation', { :size => 15 } %>
+ </p>
+
+ <div class="form_button">
+ <%= hidden_field_tag 'submitted_signchange_password', 1 %>
+ <%= hidden_field_tag 'pretoken', params[:pretoken] %>
+ <%= submit_tag "Update" %>
+ </div>
+<% end %>
+
+</div>