Merge pull request #332 from foodcoops/feature/edit-address

Allow to edit address from user profile
This commit is contained in:
wvengen 2014-12-23 21:00:20 +01:00
commit 1c0db4374f
4 changed files with 28 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'