mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-11-17 21:50:37 -05:00
Link appointment history from customer page and calendar
- Customer page list now shows a History link and a 'View all N past appointments' link; it also renders when a customer has history but nothing upcoming - Calendar toolbar gets an Appointment History button - Calendar tooltip gets a history icon next to the customer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
This commit is contained in:
6 files changed
+93
-61
No files matched your search
@@ -120,6 +120,16 @@
|
||||
|
||||
<!-- Toggle Bar -->
|
||||
<div class="calendar-filter-toolbar" style="margin-bottom: 12px; display: flex; align-items: center; justify-content: flex-end; gap: 16px;">
|
||||
<% if User.current.allowed_to?(:view_customer_appointments, nil, global: true) %>
|
||||
<%= link_to history_customer_appointments_path,
|
||||
class: 'button-small',
|
||||
style: 'display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-weight: 600; font-size: 0.9em; padding: 4px 10px; border-radius: 3px;',
|
||||
title: l(:label_appointment_history) do %>
|
||||
<i class="fa-solid fa-clock-rotate-left" aria-hidden="true"></i>
|
||||
<%= l(:label_appointment_history) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% if is_current_month %>
|
||||
<button type="button"
|
||||
onclick="scrollToToday()"
|
||||
|
||||
Reference in new issue
Block a user