Apply special instructions override

This commit is contained in:
Matt-Yorkley
2018-09-11 11:45:40 +01:00
parent 8f174b1308
commit afedaea2b5
2 changed files with 6 additions and 7 deletions

View File

@@ -1,6 +0,0 @@
/ insert_bottom "[data-hook='admin_orders_index_rows'] td:nth-child(3)"
- if order.special_instructions.present?
%br
%span{class: "icon-warning-sign", "ofn-with-tip" => order.special_instructions}
notes

View File

@@ -82,7 +82,12 @@
%td.align-center
= order.distributor.andand.name
%td.align-center= l (@show_only_completed ? order.completed_at : order.created_at).to_date
%td= link_to order.number, admin_order_path(order)
%td
= link_to order.number, admin_order_path(order)
- if order.special_instructions.present?
%br
%span{class: "icon-warning-sign", "ofn-with-tip" => order.special_instructions}
notes
%td.align-center
%span{class: "state #{order.state.downcase}"}= t("order_state.#{order.state.downcase}")
%td.align-center