Sha256: bfd70add5b95b9733462c4613e1725f3cf188c05422fa75d7a76e321c0df77f9
Contents?: true
Size: 1.65 KB
Versions: 6
Compression:
Stored size: 1.65 KB
Contents
section.row .col-sm-2 .comable-flow-label .comable-flow-label-container label | #{shipment.order.class.human_attribute_name(:shipment_state)}: p = shipment.human_state_name .col-sm-10 ul.comable-flow li = content_tag :div, options_of_shipment_badge_for(shipment, state: :pending) do i.fa.fa-circle li = content_tag :div, options_of_shipment_badge_for(shipment, state: :ready) do i.fa.fa-check-circle li - if shipment.state?(:ready) = link_to comable.ship_admin_order_path(shipment.order), options_of_shipment_badge_for(shipment, state: :completed).merge(method: :post, disabled: !@order.can_ship?) do i.fa.fa-truck - else = content_tag :div, options_of_shipment_badge_for(shipment, state: :completed) do i.fa.fa-truck - if shipment.state?(:resumed) li = content_tag :div, options_of_shipment_badge_for(shipment, state: :resumed) do i.fa.fa-refresh - if shipment.state?(:completed) || shipment.state?(:resumed) li = link_to comable.cancel_shipment_admin_order_path(shipment.order), options_of_shipment_badge_for(shipment, state: :canceled).merge(method: :post) do i.fa.fa-close - if shipment.state?(:canceled) li = content_tag :div, options_of_shipment_badge_for(shipment, state: :canceled) do i.fa.fa-close li = link_to comable.resume_shipment_admin_order_path(shipment.order), options_of_shipment_badge_for(shipment, state: :resumed).merge(method: :post) do i.fa.fa-refresh
Version data entries
6 entries across 6 versions & 2 rubygems