From 15af307fb22766e04b091ed2f7198323e5490df4 Mon Sep 17 00:00:00 2001 From: Willian Gustavo Veiga Date: Fri, 28 May 2021 16:13:37 -0300 Subject: [PATCH] Add an HTML select element to filter orders by shipment state --- backend/app/views/spree/admin/orders/index.html.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/app/views/spree/admin/orders/index.html.erb b/backend/app/views/spree/admin/orders/index.html.erb index 225af20aef..0274ae8f30 100644 --- a/backend/app/views/spree/admin/orders/index.html.erb +++ b/backend/app/views/spree/admin/orders/index.html.erb @@ -48,6 +48,10 @@ <%= f.text_field :shipments_number_start %> +
+ <%= label_tag :q_shipment_state, t('spree.shipment_state') %> + <%= f.select :shipment_state_eq, %i[backorder canceled partial pending ready shipped].map { |state| [t("spree.shipment_states.#{state}"), state] }, { include_blank: true }, { class: "custom-select fullwidth" } %> +