Sha256: 4670bc2c9dc5b15c2c4257243f39666cfdd6918cec3abf6da510aa2db1a66e88
Contents?: true
Size: 531 Bytes
Versions: 2
Compression:
Stored size: 531 Bytes
Contents
<% if @order && @order.completed_at? %> <div style="margin-bottom:4px" data-hook="admin_order_print_buttons"> <% buttons = Spree::PrintInvoice::Config[:print_buttons].split(',').compact.collect{|b| b.strip } %> <% buttons.each do |button| %> <li> <%= link_to(Spree.t(:"#{button}", scope: [:print_invoice, :buttons], default: 'PDF Slip'), spree.admin_order_path(@order, :pdf , template: button), class: 'button icon-print', target: :blank) %> </li> <% end %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree-print-invoice-2.2.0 | app/views/spree/admin/orders/_print_buttons.html.erb |
spree-print-invoice-2.1.0 | app/views/spree/admin/orders/_print_buttons.html.erb |