Files
rickyandClaude Opus 5.5 98a9bcc1bf Print label in the sidebar, filled in from the page
A Labels section in the sidebar of every page: Print label fills the
label in from the page's customer (their name), estimate, invoice,
appointment (its customer and estimate) or work order, or opens a blank
label anywhere else. When there's a customer, the PO number field offers
their latest estimates, invoices and open work orders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:51:53 -05:00

9 lines
568 B
ERB

<%# The sidebar's Labels section (every page): Print label for what the page shows, or a blank label %>
<h3><%= l(:label_qbo_labels_sidebar) %></h3>
<p class="qbo-label-sidebar">
<%= link_to sprite_icon('qbo-label-print', l(:button_qbo_labels_print), plugin: 'redmine_qbo_labels'),
new_label_job_path({ source_type: source_type, source_id: source_id }.compact),
remote: true, class: 'icon icon-qbo-label-print' %>
<% if title %><br><span class="qbo-label-muted"><%= l(:text_qbo_labels_sidebar_for, title: title) %></span><% end %>
</p>