Browse Source

Fix scheduled_at input not using datetime-local when editing announcements (#21896)

closed-social-glitch-2
Claire 1 year ago
committed by GitHub
parent
commit
d4f590d6bb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/admin/announcements/edit.html.haml

+ 1
- 1
app/views/admin/announcements/edit.html.haml View File

@ -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

Loading…
Cancel
Save