mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-13 23:37:47 +00:00
19 lines
607 B
Plaintext
19 lines
607 B
Plaintext
- if show_generate_invoice_button?(@order)
|
|
.alert-box.warning
|
|
= t('.order_has_changed')
|
|
|
|
= 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= generate_invoice_button(@order)
|
|
= 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'
|