From 68c5d6f56e9e2f8c13e37840fd5427075803df20 Mon Sep 17 00:00:00 2001 From: lamtu1 Date: Thu, 19 Dec 2024 14:28:21 -0800 Subject: [PATCH] Add in accessibility --- .../accessibility_request_form/new.html.erb | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/app/views/scholars_archive/accessibility_request_form/new.html.erb b/app/views/scholars_archive/accessibility_request_form/new.html.erb index a27c5257e..c5afa14f8 100644 --- a/app/views/scholars_archive/accessibility_request_form/new.html.erb +++ b/app/views/scholars_archive/accessibility_request_form/new.html.erb @@ -27,52 +27,52 @@ <%# NAME: Set the naming box %>
-

<%= f.label :name, t('hyrax.accessibility_request_form.name'), class: "control-label" %> *

-
<%= f.text_field :name, value: user_signed_in? ? current_user.name : '', class: 'form-control', required: true %>
+

<%= f.label :name, t('hyrax.accessibility_request_form.name'), class: "control-label", id: "name-label" %> *

+
<%= f.text_field :name, value: user_signed_in? ? current_user.name : '', class: 'form-control', required: true, 'aria-required': "true", 'aria-labelledby': "name-label" %>
<%# EMAIL: Set the email layout to enter in email, if login use their email %>
-

<%= f.label :email, t('hyrax.accessibility_request_form.email'), class: "control-label" %> *

-
<%= f.text_field :email, value: user_signed_in? ? current_user.email : '', class: 'form-control', required: true %>
+

<%= f.label :email, t('hyrax.accessibility_request_form.email'), class: "control-label", id: "email-label" %> *

+
<%= f.text_field :email, value: user_signed_in? ? current_user.email : '', class: 'form-control', required: true, 'aria-required': "true", 'aria-labelledby': "email-label" %>
<%# PHONE: Provide the phone number option %>
- <%= f.label :phone, t('hyrax.accessibility_request_form.phone'), class: "control-label" %> -
<%= f.text_field :phone, value: '', class: 'form-control' %>
+ <%= f.label :phone, t('hyrax.accessibility_request_form.phone'), class: "control-label", id: "phone-label" %> +
<%= f.text_field :phone, value: '', class: 'form-control', 'aria-labelledby': "phone-label" %>
<%# LINK: Provide the link to let user gives the link to access accessibility %>

<%= f.label :url_link, t('hyrax.accessibility_request_form.link'), class: "control-label" %> *

- -

Please include the full link to the item that you would like us to remediate.

+ +

Please include the full link to the item that you would like us to remediate.

<%# DESCRIPTION: Provide the detail about the accessibility %>

<%= f.label :details, t('hyrax.accessibility_request_form.details'), class: "control-label" %> *

-
<%= f.text_area :details, value: '', rows: 4, class: 'form-control', required: true %>
-

Please describe the type of accommodation that you need (for example, written transcription, compatibility with a particular assistive device, preferred file formats, etc.). Include details about what particular parts of the content are inaccessible, if applicable.

+
<%= f.text_area :details, value: '', rows: 4, class: 'form-control', required: true, 'aria-required': "true", 'aria-labelledby': "desc-label" %>
+

Please describe the type of accommodation that you need (for example, written transcription, compatibility with a particular assistive device, preferred file formats, etc.). Include details about what particular parts of the content are inaccessible, if applicable.

<%# DESCRIPTION: Provide the additional detail about the accessibility %>
<%= f.label :additional, t('hyrax.accessibility_request_form.additional'), class: "control-label" %> -
<%= f.text_area :additional, value: '', rows: 4, class: 'form-control' %>
-

List any other ScholarsArchive@OSU items you would like remediated as part of this request.

+
<%= f.text_area :additional, value: '', rows: 4, class: 'form-control', 'aria-labelledby': "addi-label" %>
+

List any other ScholarsArchive@OSU items you would like remediated as part of this request.

<%# DATE: Provide the date needed for request %>
<%= f.label :date, t('hyrax.accessibility_request_form.date'), class: "control-label" %> -
<%= f.date_field :date, value: f.object.try(:strftime,"%m/%d/%Y"), class: 'form-control' %>
-

If you need this item by a particular date, let us know and we will do our best to deliver by your deadline.

+
<%= f.date_field :date, value: f.object.try(:strftime,"%m/%d/%Y"), class: 'form-control', 'aria-labelledby': "date-label" %>
+

If you need this item by a particular date, let us know and we will do our best to deliver by your deadline.

<%# CAPTCHA: Add in the captcha on form %> <%= recaptcha_tags if Hyrax.config.recaptcha? %> <%= invisible_captcha %> - <%= f.submit value: t('hyrax.accessibility_request_form.button'), class: "btn btn-primary" %> + <%= f.submit value: t('hyrax.accessibility_request_form.button'), class: "btn btn-primary", 'aria-label': "Send" %> <% end %>