Browse Source

Fix announcement dates not being validated client-side (#20577)

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

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

@ -4,7 +4,7 @@
- content_for :header_tags do
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
= simple_form_for @announcement, url: admin_announcement_path(@announcement) do |f|
= simple_form_for @announcement, url: admin_announcement_path(@announcement), html: { novalidate: false } do |f|
= render 'shared/error_messages', object: @announcement
.fields-group

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

@ -4,7 +4,7 @@
- content_for :header_tags do
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
= simple_form_for @announcement, url: admin_announcements_path do |f|
= simple_form_for @announcement, url: admin_announcements_path, html: { novalidate: false } do |f|
= render 'shared/error_messages', object: @announcement
.fields-group

Loading…
Cancel
Save