2011-12-25 07:23:19 +00:00
|
|
|
= form_for resource, :as => resource_name, :url => registration_path(resource_name), :html => {:id => "edit_form", :class => "form-stacked", :method => :put} do |f|
|
|
|
|
= f.hidden_field "id"
|
|
|
|
%label{:for => "user_email", :id => "user_email_label"}
|
|
|
|
= t("labels.email")
|
|
|
|
%small
|
2011-12-25 22:30:46 +00:00
|
|
|
= image_tag "lock.png", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
|
2012-01-02 12:36:34 +00:00
|
|
|
= f.email_field "email"
|
2011-12-25 07:23:19 +00:00
|
|
|
%label{:for => "user_name", :id => "user_name_label"}
|
|
|
|
= t("labels.name")
|
|
|
|
%small
|
|
|
|
= t("captions.public")
|
|
|
|
= f.text_field "name"
|
|
|
|
%label{:for => "user_organization", :id => "user_organization_label"}
|
|
|
|
= t("labels.organization")
|
|
|
|
%small
|
|
|
|
= t("captions.public")
|
|
|
|
= f.text_field "organization"
|
|
|
|
%label{:for => "user_voice_number", :id => "user_voice_number_label"}
|
|
|
|
= t("labels.voice_number")
|
|
|
|
%small
|
2011-12-25 22:30:46 +00:00
|
|
|
= image_tag "lock.png", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
|
2012-01-02 12:36:34 +00:00
|
|
|
= f.telephone_field "voice_number", :placeholder => t("defaults.voice_number"), :value => number_to_phone(f.object.voice_number)
|
2011-12-25 07:23:19 +00:00
|
|
|
%label{:for => "user_sms_number", :id => "user_sms_number_label"}
|
|
|
|
= t("labels.sms_number")
|
|
|
|
%small
|
2011-12-25 22:30:46 +00:00
|
|
|
= image_tag "lock.png", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
|
2012-01-02 12:36:34 +00:00
|
|
|
= f.telephone_field "sms_number", :placeholder => t("defaults.sms_number"), :value => number_to_phone(f.object.sms_number)
|
|
|
|
%label{:for => "user_address_1", :id => "user_address_1_label"}
|
|
|
|
= t("labels.address_1")
|
|
|
|
%small
|
|
|
|
= image_tag "lock.png", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
|
|
|
|
= f.text_field "address_1", :placeholder => t("defaults.address_1")
|
|
|
|
%label{:for => "user_address_2", :id => "user_address_2_label"}
|
|
|
|
= t("labels.address_2")
|
|
|
|
%small
|
|
|
|
= image_tag "lock.png", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
|
|
|
|
= f.text_field "address_2", :placeholder => t("defaults.address_2")
|
|
|
|
%label{:for => "user_city", :id => "user_city_label"}
|
|
|
|
= t("labels.city")
|
|
|
|
%small
|
|
|
|
= image_tag "lock.png", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
|
|
|
|
= f.text_field "city", :placeholder => t("defaults.city")
|
|
|
|
%label{:for => "user_state", :id => "user_state_label"}
|
|
|
|
= t("labels.state")
|
|
|
|
%small
|
|
|
|
= image_tag "lock.png", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
|
|
|
|
= f.select "state", us_states, :include_blank => true
|
|
|
|
%label{:for => "user_zip", :id => "user_zip_label"}
|
|
|
|
= t("labels.zip")
|
|
|
|
%small
|
|
|
|
= image_tag "lock.png", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
|
|
|
|
= f.text_field "zip", :placeholder => t("defaults.zip")
|
2011-12-25 07:23:19 +00:00
|
|
|
%label{:for => "user_password", :id => "user_password_label"}
|
|
|
|
= t("labels.password_new")
|
|
|
|
%small
|
|
|
|
= t("captions.optional")
|
|
|
|
= f.password_field "password"
|
|
|
|
%label{:for => "user_current_password", :id => "user_current_password_label"}
|
|
|
|
= t("labels.current_password")
|
2012-01-02 12:36:34 +00:00
|
|
|
%small
|
|
|
|
= t("captions.required")
|
2011-12-25 07:23:19 +00:00
|
|
|
= f.password_field "current_password"
|
|
|
|
= f.submit t("buttons.update"), :class => "btn primary"
|
|
|
|
= form_for :things, :url => root_path, :html => {:id => "back_form", :class => "form-stacked", :method => "get"} do |f|
|
|
|
|
= f.hidden_field "id"
|
|
|
|
= f.submit t("buttons.back"), :class => "btn"
|
|
|
|
:javascript
|
|
|
|
$(function() {
|
|
|
|
$('#user_email').focus();
|
|
|
|
});
|