Files
openfoodnetwork/app/views/spree/admin/orders/index.html.haml
2024-10-30 23:05:55 +01:00

37 lines
1.2 KiB
Plaintext

- content_for :page_title do
= t('.listing_orders')
- content_for :minimal_js, true
- content_for :page_actions do
%li
= button_link_to t('.new_order'), spree.new_admin_order_url, icon: 'icon-plus', id: 'admin_new_order'
= render partial: 'spree/admin/shared/order_sub_menu'
- content_for :table_filter_title do
= t(:search)
- content_for :table_filter do
= render partial: 'filters'
%turbo-frame#order-results
#orders-index{"data-controller": "search checked"}
= render partial: "table", locals: { pagy: @pagy, orders: @orders }
= render 'spree/admin/shared/custom-confirm'
= render ConfirmModalComponent.new(id: "resend_confirmation", form_url: resend_confirmation_emails_admin_orders_path) do
.margin-bottom-30
= t('.resend_confirmation_confirm_html')
= render ConfirmModalComponent.new(id: "send_invoice", form_url: send_invoices_admin_orders_path) do
.margin-bottom-30
= t('.send_invoice_confirm_html')
= render ConfirmModalComponent.new(id: "cancel_orders", form_url: cancel_orders_admin_orders_path) do
.margin-bottom-30
= t("js.admin.orders.cancel_the_order_html")
.margin-bottom-30
= render partial: "spree/admin/orders/messages/cancel_orders"