mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-11-17 21:50:37 -05:00
Adds a history page listing past customer appointments with customer, status and date-range filters and pagination, linked from the customer page, the appointments index and each appointment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
11 lines
524 B
ERB
11 lines
524 B
ERB
<% customer = context[:customer] %>
|
|
<% if User.current.allowed_to?(:add_customer_appointments, nil, global: true) %>
|
|
<p>
|
|
<%= link_to l(:label_add_appointment), new_customer_appointment_path(customer_id: customer.id), target: :_blank, id: :appointment_link %>
|
|
</p>
|
|
<% end %>
|
|
<% if User.current.allowed_to?(:view_customer_appointments, nil, global: true) %>
|
|
<p>
|
|
<%= link_to l(:label_appointment_history), history_customer_appointments_path(customer_id: customer.id), id: :appointment_history_link %>
|
|
</p>
|
|
<% end %> |