Files
redmine_qbo_calendar/app/views/customer_appointments/_customer_actions.html.erb
T
Claude 41e1a7ecf9 Add appointment link in the customer page's contextual area
Uses redmine_qbo's new :view_customers_show_contextual hook (replacing
customer_actions_top) and renders "Add appointment" as a Redmine-style
icon link alongside the customer's other actions. Needs the matching
redmine_qbo update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
2026-10-29 23:29:46 -04:00

6 lines
326 B
ERB

<% if customer && User.current.allowed_to?(:add_customer_appointments, nil, global: true) %>
<%= link_to sprite_icon('time-add', l(:label_add_appointment)),
new_customer_appointment_path(customer_id: customer.id),
class: 'icon icon-time-add', target: :_blank, id: 'appointment_link' %>
<% end %>