2011-06-09 22:03:27 +02:00
|
|
|
= f.input :nick
|
|
|
|
= f.input :first_name
|
|
|
|
= f.input :last_name
|
|
|
|
= f.input :email
|
|
|
|
= f.input :phone
|
2012-10-08 11:51:56 +02:00
|
|
|
= f.input :password, :required => f.object.new_record?
|
2011-06-09 22:03:27 +02:00
|
|
|
= f.input :password_confirmation
|
2012-10-08 11:51:56 +02:00
|
|
|
.control-group
|
|
|
|
.controls
|
|
|
|
- for setting in User::setting_keys.keys
|
|
|
|
%label.checkbox{:for => "user[setting_attributes][#{setting}]"}
|
|
|
|
= check_box_tag "user[setting_attributes][#{setting}]", '1',
|
|
|
|
f.object.settings[setting] == '1' || f.object.settings_default(setting)
|
|
|
|
= User::setting_keys[setting]
|