From 66f3a712ea0ccf76d145afa9a4a3940fc835a7be Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Sun, 13 Oct 2024 23:32:19 +1030 Subject: [PATCH] Update _form.html.haml --- app/views/shared/editable/_form.html.haml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/shared/editable/_form.html.haml b/app/views/shared/editable/_form.html.haml index 69b79cbcf..c009aa62a 100644 --- a/app/views/shared/editable/_form.html.haml +++ b/app/views/shared/editable/_form.html.haml @@ -12,7 +12,6 @@ - elsif field_type == :select = f.select field, collection - elsif field_type == :date - = 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