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
|
2011-06-10 13:31:01 +02:00
|
|
|
= f.input :password, :required => @user.new_record?
|
2011-06-09 22:03:27 +02:00
|
|
|
= f.input :password_confirmation
|
|
|
|
- for setting in User::setting_keys.keys
|
|
|
|
.input.boolean
|
|
|
|
= check_box_tag "user[setting_attributes][#{setting}]",
|
|
|
|
'1', @user.settings[setting] == '1' || @user.settings_default(setting),
|
|
|
|
:class => 'boolean'
|
|
|
|
%label.boolean{:for => "user[setting_attributes][#{setting}]"}= h User::setting_keys[setting]
|