Commit dfe39540cd0fece026a465db320dd4c63ba84fd6

Authored by David Silva
Committed by Fabio Teixeira
1 parent a405a4a6

signup_image_upload: Put file_field as a optional_field.

Signed-off-by: David Carlos <ddavidcarlos1392@gmail.com>
Signed-off-by: Luiz Matos <luizff.matos@gmail.com>
app/views/profile_editor/_person_form.html.erb
... ... @@ -25,6 +25,7 @@
25 25 <%= optional_field(@person, 'address', labelled_form_field(_('Address (street and number)'), text_field(:profile_data, :address, :rel => _('Address')))) %>
26 26 <%= optional_field(@person, 'address_reference', labelled_form_field(_('Address reference'), text_field(:profile_data, :address_reference, :rel => _('Address reference')))) %>
27 27 <%= optional_field(@person, 'district', labelled_form_field(_('District'), text_field(:profile_data, :district, :rel => _('District')))) %>
  28 +<%= optional_field(@person, 'image', labelled_form_field(_('Image'), file_field(:profile_data, :image, :rel => _('Image')))) %>
28 29  
29 30 <% optional_field(@person, 'schooling') do %>
30 31 <div class="formfieldline">
... ...