Skip to content

Commit

Permalink
Merge branch '20241216-disable-dates' into 20241126-maintenance-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Deli authored and Dennis Deli committed Dec 16, 2024
2 parents 8872209 + 06ba46d commit 6a63305
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/requests/_form_fields.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@
<%= f.input :reserve_location_id, collection: Location.active, required: true, hint: "Where do you want students to pick up your items?" %>
</div>
<div class="col-sm-3">
<%= f.input :reserve_start_date, as: :string, readonly: ! current_user.admin?, required: false, hint: "Prefilled after term selection.",
<%= f.input :reserve_start_date, as: :string, disabled: true, readonly: ! current_user.admin?, required: false, hint: "Prefilled after term selection.",
input_html: { id: "request_reserve_start_date", class: current_user.admin? ? "datepicker" : "" } %>
</div>
<div class="col-sm-3">
<%= f.input :reserve_end_date, as: :string, readonly: ! current_user.admin?, required: false,
<%= f.input :reserve_end_date, as: :string, disabled: true, readonly: ! current_user.admin?, required: false,
input_html: { id: "request_reserve_end_date", class: current_user.admin? ? "datepicker" : "" } %>
</div>
</div> <!-- row end -->
Expand Down

0 comments on commit 6a63305

Please sign in to comment.