Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

Commit

Permalink
#5 <@callegas, @marlonfurtado> - Editar campo de Data
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonfurtado committed Oct 18, 2016
1 parent a63d1d6 commit 70fd4b1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app/views/user_blood_donators/registrations/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@
<div class="Grid-cell u-desktop-size6of12 u-tablet-size6of12 u-mobile-sizeFull">
<div class="Form-group">
<span class="Form-inputLabel u-size2of12">Data de nascimento: </span>
<%= f.date_field :date_birth, class: "Form-inputValue js-validateDate" %>
<%= f.date_select :date_birth, {order: [:day, :month, :year],
start_year: Date.today.year-16, end_year: Date.today.year-69},
with_css_classes: true, class: "Form-inputValue js-validateDate" %>
<span id="errorDate" style="display:none;" class="errorMessage"></span>
</div>
</div>
Expand Down Expand Up @@ -108,8 +110,11 @@
<!-- LAST DONATION -->
<div class="Grid-cell u-desktop-size6of12 u-tablet-size6of12 u-mobile-sizeFull">
<div class="Form-group">
<span class="Form-inputLabel u-size2of12">Ultima doação: </span>
<%= f.date_field :last_donation, class: "Form-inputValue" %>
<span class="Form-inputLabel u-size2of12">Data de nascimento: </span>
<%= f.date_select :last_donation, {order: [:day, :month, :year],
start_year: Date.today.year, end_year: Date.today.year-53},
with_css_classes: true, class: "Form-inputValue js-validateDate" %>
<span id="errorDate" style="display:none;" class="errorMessage"></span>
</div>
</div>

Expand Down

0 comments on commit 70fd4b1

Please sign in to comment.