Sha256: dc83fee9737257335b7415657406e8dda162ee776c949c94ab79edf3673d6b12

Contents?: true

Size: 370 Bytes

Versions: 3

Compression:

Stored size: 370 Bytes

Contents

<% if @order and @order.completed_at? %>
  <% buttons = Spree::PrintInvoice::Config[:print_buttons]
     buttons = buttons.split(",").collect{|b| b.strip } %>
  <%  buttons.each do |button| %>
    <li><%= link_to(Spree.t(button.to_s + "_print"), spree.admin_order_path(@order, :pdf , :template => button), :class => "button fa fa-print") %></li>
  <% end %>
<% end %>  

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_print_invoice-1.0.2 app/views/spree/admin/orders/_print_buttons.html.erb
solidus_print_invoice-1.0.1 app/views/spree/admin/orders/_print_buttons.html.erb
solidus_print_invoice-1.0.0 app/views/spree/admin/orders/_print_buttons.html.erb