adopt-a-hydrant/app/views/users/edit.html.haml

26 lines
1.3 KiB
Plaintext
Raw Normal View History

2011-05-08 08:29:21 +00:00
= form_for resource, :as => resource_name, :url => registration_path(resource_name), :html => {:id => "edit_form", :method => :put} do |f|
%h2
= t("titles.edit_profile")
2011-05-08 08:29:21 +00:00
= f.hidden_field "id"
= f.label "email", t("labels.email"), :id => "user_email_label"
2011-05-08 08:29:21 +00:00
= f.text_field "email", :tabindex => 1
= f.label "name", t("labels.name"), :id => "user_name_label"
2011-05-08 08:29:21 +00:00
= f.text_field "name", :tabindex => 2
= f.label "organization", t("labels.organization"), :id => "user_organization_label"
2011-05-08 08:29:21 +00:00
= f.text_field "organization", :tabindex => 3
= f.label "voice_number", t("labels.voice_number"), :id => "user_voice_number_label"
2011-05-08 08:29:21 +00:00
= f.text_field "voice_number", :tabindex => 4
= f.label "sms_number", t("labels.sms_number"), :id => "user_sms_number_label"
2011-05-08 08:29:21 +00:00
= f.text_field "sms_number", :tabindex => 5
= f.label "password", t("labels.password_new"), :id => "user_password_label"
2011-05-08 08:29:21 +00:00
%em
= t("captions.password")
2011-05-08 08:29:21 +00:00
= f.password_field "password", :tabindex => 6
= f.label "current_password", t("labels.password_current"), :id => "user_current_password_label"
2011-05-08 08:29:21 +00:00
%em
= t("captions.current_password")
2011-05-08 08:29:21 +00:00
(we need your current password to confirm your changes)
= f.password_field "current_password", :tabindex => 7
= f.submit t("buttons.update"), :tabindex => 8
2011-05-08 08:29:21 +00:00
= render :partial => 'hydrants/back'