Commit 86215906 authored by marcheing's avatar marcheing

Use the expected field names for occupation and birthdate

The parameters passed to profiles controller will be selected according
to the name attribute of each input tag.
parent 23cc2681
......@@ -106,7 +106,7 @@
<%= f.label "#{t('birthdate')} *", for: 'user-birthdate' %>
</div>
<div class="field-item">
<%= f.date_select :birthdate, id: 'user-birthdate', use_month_numbers: true, use_two_digit_numbers: true, start_year: Date.today.year - 50, end_year: Date.today.year - 10, order: [:day, :month, :year] %>
<%= select_date Date.today, prefix: 'profile', use_month_numbers: true, use_two_digit_numbers: true, start_year: Date.today.year - 50, end_year: Date.today.year - 10, order: [:day, :month, :year] %>
<span class="form-error">
Campo obrigatório.
</span>
......@@ -192,10 +192,10 @@
<fieldset>
<div class="field-label">
<%= f.label "#{t('occupation')} *", for: 'user-occuation' %>
<%= f.label "#{t('occupation')} *", for: 'profile_occupation' %>
</div>
<div class="field-item">
<%= select_tag 'occupation', occupation_select, id: 'user-occupation' %>
<%= f.select :occupation, occupation_select %>
<span class="form-error">
Campo obrigatório.
</span>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment