mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-10-03 20:40:43 -04:00
only show add link for today and future dates
This commit is contained in:
1 parent
802db23048
commit
ba16d88659
1 file changed
+6
-4
@@ -65,10 +65,12 @@
|
|||||||
<span class="day-value"><%= day.day %></span>
|
<span class="day-value"><%= day.day %></span>
|
||||||
<span class="abbr-day">(<%= abbr_day_name(day.cwday) %>)</span>
|
<span class="abbr-day">(<%= abbr_day_name(day.cwday) %>)</span>
|
||||||
|
|
||||||
<%= link_to sprite_icon('add'),
|
<% if day >= User.current.today %>
|
||||||
new_customer_appointment_path(start_date: day),
|
<%= link_to sprite_icon('add'),
|
||||||
class: 'icon-only icon-add',
|
new_customer_appointment_path(start_date: day),
|
||||||
title: l(:label_appointment_new, default: 'New Appointment') %>
|
class: 'icon-only icon-add',
|
||||||
|
title: l(:label_appointment_new, default: 'New Appointment') %>
|
||||||
|
<% end %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<%
|
<%
|
||||||
|
|||||||
Reference in new issue
Block a user