Allow to edit address from user profile

This commit is contained in:
wvengen 2014-12-10 21:27:53 +01:00
parent 7ac3f54709
commit 56f6efa590
3 changed files with 24 additions and 4 deletions

View file

@ -6,7 +6,7 @@
= h(t('.user.title', user: show_user))
%small= t '.user.since', when: distance_of_time_in_words(Time.now, @current_user.created_on)
= simple_form_for(@current_user, :url => update_profile_path) do |f|
= render :partial => 'shared/user_form_fields', :locals => {:f => f, :password_autocomplete => 'store-only'}
= render :partial => 'shared/user_form_fields', :locals => {:f => f, :password_autocomplete => 'store-only', with_address: true}
.form-actions
= submit_tag t('ui.save'), class: 'btn'
.span5