about summary refs log tree commit diff
path: root/app/views/admin
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-13 20:58:54 +0100
committerGitHub <noreply@github.com>2022-11-13 20:58:54 +0100
commit3d3bd344cb30929756e4b6ddcadddb20e16d172f (patch)
tree500fca80c966157fc54fe8c7ecf98918cd7624fc /app/views/admin
parent1af482659d6f3094934a202c6394247c491d514c (diff)
Fix announcement dates not being validated client-side (#20577)
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/announcements/edit.html.haml2
-rw-r--r--app/views/admin/announcements/new.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/admin/announcements/edit.html.haml b/app/views/admin/announcements/edit.html.haml
index e20a839b9..66c8d31a7 100644
--- a/app/views/admin/announcements/edit.html.haml
+++ b/app/views/admin/announcements/edit.html.haml
@@ -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
diff --git a/app/views/admin/announcements/new.html.haml b/app/views/admin/announcements/new.html.haml
index d5881b7aa..57b7d5e0c 100644
--- a/app/views/admin/announcements/new.html.haml
+++ b/app/views/admin/announcements/new.html.haml
@@ -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