Sha256: 563c12250406f4649e17e8670e7077462ebe86b5d9d5712f79326b5e706ad860

Contents?: true

Size: 743 Bytes

Versions: 6

Compression:

Stored size: 743 Bytes

Contents

#comable-order
  .comable-shipment
    h1
      = @order.class.human_state_name(:shipment)

    = form_for @order, as: :order, url: update_order_path, method: :put do |f|
      - shipment = @order.shipment || @order.build_shipment
      = f.fields_for :shipment, shipment do |ff|
        ul
          - Comable::ShipmentMethod.activated.each.with_index do |shipment_method, index|
            li
              - checked_flag = shipment.shipment_method ? (shipment.shipment_method == shipment_method) : index.zero?
              = ff.radio_button :shipment_method_id, shipment_method.id, checked: checked_flag
              = ff.label :shipment_method_id, shipment_method.name, value: shipment_method.id
      = f.submit Comable.t('next_step')

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
comable-frontend-0.7.0.beta1 app/views/comable/orders/shipment.slim
comable-frontend-0.6.0 app/views/comable/orders/shipment.slim
comable_frontend-0.5.0 app/views/comable/orders/shipment.slim
comable_frontend-0.4.2 app/views/comable/orders/shipment.slim
comable_frontend-0.4.1 app/views/comable/orders/shipment.slim
comable_frontend-0.4.0 app/views/comable/orders/shipment.slim