Files
openfoodnetwork/app/views/spree/admin/invoices/index.html.haml
Mohamed ABDELLANI d86173c509 add feature toggle
seperate the invoice templates that rely on presenters from the old ones.
2023-06-18 21:03:13 +02:00

15 lines
602 B
Plaintext

= render partial: 'spree/admin/shared/order_page_title'
= render partial: 'spree/admin/shared/order_tabs', locals: { current: 'Invoices' }
- content_for :page_title do
%i.icon-arrow-right
= t(:invoices)
- content_for :page_actions do
- if show_generate_invoice_button?(@order)
%li= button_link_to t(:new_invoice), generate_admin_order_invoices_path(@order), :icon => 'icon-plus', data: { method: 'post' }
= render partial: 'spree/admin/shared/order_links'
%li= button_link_to t(:back_to_orders_list), admin_orders_path, :icon => 'icon-arrow-left'
= render :partial => 'invoices_table'