mirror of
https://github.com/rickbarrette/redmine_qbo_labels.git
synced 2026-11-18 01:50:36 -05:00
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>
9 lines
568 B
ERB
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>
|