diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-01-18 16:23:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-18 16:23:39 +0100 |
commit | d4f590d6bba173bb0861e9babc7830bdc57d55d6 (patch) | |
tree | 2cbf0343877be197bd15471d4a2905598b9925c1 /app/views/admin | |
parent | 41517a484506796f09610b79c59f91723e2fd662 (diff) |
Fix scheduled_at input not using datetime-local when editing announcements (#21896)
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/announcements/edit.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/announcements/edit.html.haml b/app/views/admin/announcements/edit.html.haml index 66c8d31a7..c6c47586a 100644 --- a/app/views/admin/announcements/edit.html.haml +++ b/app/views/admin/announcements/edit.html.haml @@ -19,7 +19,7 @@ - unless @announcement.published? .fields-group - = f.input :scheduled_at, include_blank: true, wrapper: :with_block_label + = f.input :scheduled_at, include_blank: true, wrapper: :with_block_label, html5: true, input_html: { pattern: '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}(:[0-9]{2}){1,2}', placeholder: Time.now.strftime('%FT%R') } .actions = f.button :button, t('generic.save_changes'), type: :submit |