Sha256: cc1dbb09a376b3e662c05eec5aa3147bf00f781d338aa938296ab257f05d65cf
Contents?: true
Size: 1.73 KB
Versions: 3
Compression:
Stored size: 1.73 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, shipment_id: shipment.id), options_of_shipment_badge_for(shipment, state: :completed).merge(method: :post, disabled: !shipment.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, shipment_id: shipment.id), 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, shipment_id: shipment.id), options_of_shipment_badge_for(shipment, state: :resumed).merge(method: :post) do i.fa.fa-refresh
Version data entries
3 entries across 3 versions & 1 rubygems