Skip to content

Commit

Permalink
Merge pull request #4089 from willianveiga/feature/filter-order-by-sh…
Browse files Browse the repository at this point in the history
…ipment-status

Add an HTML select element to filter orders by the shipment state
  • Loading branch information
kennyadsl authored Jun 8, 2021
2 parents 2ff5258 + 15af307 commit 6c0da5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/app/views/spree/admin/orders/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
<%= f.text_field :shipments_number_start %>
</div>

<div class="field">
<%= 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" } %>
</div>
</div>

<div class="col-12 col-md-6 col-lg-4 col-xl-6">
Expand Down

0 comments on commit 6c0da5d

Please sign in to comment.