From ac7ea7ad4150df324afa746620eff4a09b47fad3 Mon Sep 17 00:00:00 2001 From: dnoneill Date: Tue, 7 Jan 2025 11:23:10 -0500 Subject: [PATCH] make email/message field required --- app/views/spotlight/shared/_report_a_problem.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/spotlight/shared/_report_a_problem.html.erb b/app/views/spotlight/shared/_report_a_problem.html.erb index aa6ddd609..fc02c98aa 100644 --- a/app/views/spotlight/shared/_report_a_problem.html.erb +++ b/app/views/spotlight/shared/_report_a_problem.html.erb @@ -4,10 +4,10 @@ <%= bootstrap_form_for contact_form, url: spotlight.exhibit_contact_form_path(current_exhibit, contact_form), layout: :horizontal, label_col: 'col-sm-3', control_col: 'col-sm-9', html: { class: 'col-md-offset-2 col-md-8 my-3 '} do |f| %>

<%= t(:'.title') %>

<%= t('.reporting_from', url: contact_form.current_url) %>
- <%= f.text_area :message, rows: 4 %> + <%= f.text_area :message, rows: 4, required: true, aria: { required: true } %> <%= f.text_field :name %> <%= render '/spotlight/shared/honeypot_field', f: f %> - <%= f.email_field :email %> + <%= f.email_field :email, required: true, aria: { required: true } %>

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.