demarches-normaliennes/app/views/new_gestionnaire/dossiers/champs/_datetime.html.haml
2017-09-06 11:11:34 +02:00

6 lines
305 B
Text

= render partial: 'new_gestionnaire/dossiers/champs/champ_label', locals: { form: form, champ: champ }
- parsed_value = champ.value.present? ? DateTime.parse(champ.value) : DateTime.now
.datetime
= form.datetime_select(:value, selected: parsed_value, start_year: 1950, end_year: 2100, minute_step: 5)