From 8459bc2fdfe146e2f2cadf65b440fefd237c6024 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Sun, 13 Oct 2024 23:29:17 +1030 Subject: [PATCH] Swap to HTML5 date field --- app/views/shared/editable/_date.html.haml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/shared/editable/_date.html.haml b/app/views/shared/editable/_date.html.haml index 1e570b8de..47bc01660 100644 --- a/app/views/shared/editable/_date.html.haml +++ b/app/views/shared/editable/_date.html.haml @@ -5,7 +5,6 @@ = edit_icon .hide{id: "date--#{model.id}-#{field.to_s}"} = bootstrap_form_for(model) do |f| - = f.text_field field, - value: model.send(field) ? model.send(field).to_fs(:ymd) : '', - class: 'add-datepicker', label: 'When?' + = f.date_field field, + value: model.send(field) ? model.send(field).to_fs(:ymd) : '', label: 'When?' = f.submit :save