2017-08-02 14:56:08 +02:00
|
|
|
= render partial: 'new_gestionnaire/dossiers/champs/champ_label', locals: { form: form, champ: champ }
|
2017-07-25 14:33:03 +02:00
|
|
|
|
2017-08-02 14:56:08 +02:00
|
|
|
- parsed_value = champ.value.present? ? DateTime.parse(champ.value) : DateTime.now
|
2017-07-25 14:33:03 +02:00
|
|
|
|
2017-08-02 14:56:08 +02:00
|
|
|
.datetime
|
|
|
|
= form.datetime_select(:value, selected: parsed_value, start_year: 1950, end_year: 2100, minute_step: 5)
|