- 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'
