From 4e4389dbb8bf5ba1f2b8cdd91802cc4d2d08ef93 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 11 Aug 2026 15:13:21 -0400 Subject: [PATCH] Remove new apointment links from non working days --- app/views/common/_calendar.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/common/_calendar.html.erb b/app/views/common/_calendar.html.erb index 0a1d7de..6099cc3 100644 --- a/app/views/common/_calendar.html.erb +++ b/app/views/common/_calendar.html.erb @@ -142,7 +142,7 @@ - <% if day >= User.current.today %> + <% if day >= User.current.today && !non_working_days.include?(day.cwday.to_s) %> <%= link_to sprite_icon('add'), new_customer_appointment_path(start_date: day), class: 'icon-only icon-add',