only show add link for today and future dates

This commit is contained in:
ricky committed 2026-08-08 11:09:50 -04:00
1 parent 802db23048
commit ba16d88659
1 file changed
+6 -4
+6 -4
View File
@@ -65,10 +65,12 @@
<span class="day-value"><%= day.day %></span>
<span class="abbr-day">(<%= abbr_day_name(day.cwday) %>)</span>
<%= link_to sprite_icon('add'),
new_customer_appointment_path(start_date: day),
class: 'icon-only icon-add',
title: l(:label_appointment_new, default: 'New Appointment') %>
<% if day >= User.current.today %>
<%= link_to sprite_icon('add'),
new_customer_appointment_path(start_date: day),
class: 'icon-only icon-add',
title: l(:label_appointment_new, default: 'New Appointment') %>
<% end %>
</p>
<%