Sha256: 59df4205f2f1f31c94632292173fc3cd54a52da0924a490f40e234d18f804acc
Contents?: true
Size: 1.45 KB
Versions: 3
Compression:
Stored size: 1.45 KB
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| - @order.shipments.build if @order.shipments.empty? = f.fields_for :shipments, @order.shipments do |ff| .panel.panel-default .panel-heading | 発送 ##{ff.index.next} ul.list-group - Comable::ShipmentMethod.activated.each.with_index do |shipment_method, index| li.list-group-item - checked_flag = ff.object.shipment_method ? (ff.object.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 table thead tr th = Comable.t('products') th = Comable.t('price') th = Comable.t('quantity') tbody - ff.object.shipment_items.group_by(&:stock).each_pair do |stock, shipment_items| tr td = stock.name td = number_to_currency stock.price td = number_with_delimiter shipment_items.size = f.submit Comable.t('next_step')
Version data entries
3 entries across 3 versions & 1 rubygems