Make the datepicker french for the auto archive field

This commit is contained in:
gregoirenovel 2017-03-28 17:45:15 +02:00
parent 564ff45117
commit 8126549a0d

View file

@ -85,7 +85,7 @@
%h4 Options avancées %h4 Options avancées
%label{ for: :auto_archive_on} Archivage automatique le %label{ for: :auto_archive_on} Archivage automatique le
= f.text_field :auto_archive_on, id: 'auto_archive_on', value: @procedure.auto_archive_on.try{ |d| d.strftime("%d-%m-%Y") }, data: { provide: 'datepicker', 'date-format' => 'dd/mm/yyyy' } = f.text_field :auto_archive_on, id: 'auto_archive_on', value: @procedure.auto_archive_on.try{ |d| d.strftime("%d-%m-%Y") }, data: { provide: 'datepicker', 'date-language' => 'fr', 'date-format' => 'dd/mm/yyyy' }
(à 00h00) (à 00h00)
%p.help-block %p.help-block
%i.fa.fa-info-circle %i.fa.fa-info-circle