From 5f3634a0e53575737d430d045c05c5d312cb83d6 Mon Sep 17 00:00:00 2001 From: Dennis Deli Date: Mon, 6 Jan 2025 16:43:08 -0500 Subject: [PATCH] made reserve dates read only --- app/views/requests/_form_fields.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/requests/_form_fields.html.erb b/app/views/requests/_form_fields.html.erb index f120372..cc6bed1 100644 --- a/app/views/requests/_form_fields.html.erb +++ b/app/views/requests/_form_fields.html.erb @@ -86,12 +86,12 @@ <%= f.input :reserve_location_id, collection: Location.active, required: true, hint: "Where do you want students to pick up your items?" %>
- <%= f.input :reserve_start_date, as: :string, readonly: ! current_user.admin?, required: false, hint: "Prefilled after term selection.", - input_html: { id: "request_reserve_start_date", class: current_user.admin? ? "datepicker" : "" } %> + <%= f.input :reserve_start_date, as: :string, readonly: true, required: false, hint: "Prefilled after term selection.", + input_html: { id: "request_reserve_start_date", class: "" } %>
- <%= f.input :reserve_end_date, as: :string, readonly: ! current_user.admin?, required: false, - input_html: { id: "request_reserve_end_date", class: current_user.admin? ? "datepicker" : "" } %> + <%= f.input :reserve_end_date, as: :string, readonly: true, required: false, + input_html: { id: "request_reserve_end_date", class: "" } %>