Sha256: 8543c6a8de5cd4fbef6638d031d664b88e6cbda183a110de9a92033248382d10

Contents?: true

Size: 604 Bytes

Versions: 14

Compression:

Stored size: 604 Bytes

Contents

.nested-fields.order-item
  .row
    - f.object.purchasable ||= Effective::Product.new
    = f.simple_fields_for :purchasable do |purchasable|
      .col-sm-2= f.input :quantity, input_html: { value: f.object.quantity || 1, min: 1 }
      .col-sm-4= purchasable.input :title, input_html: { maxlength: 255 }
      .col-sm-2= purchasable.input :price, as: :effective_price
      .col-sm-2= purchasable.input :tax_exempt, label: 'Tax Exempt', input_html: { title: 'When checked, tax will not be applied to this item' }
      .col-sm-2.remove-nested-fields= link_to_remove_association('Remove line item', f)

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
effective_orders-3.2.3 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-3.2.2 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-3.2.1 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-3.2.0 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-3.1.7 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-3.1.6 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-3.1.4 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-3.1.3 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-3.1.0 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-3.0.4 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-3.0.3 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-3.0.2 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-3.0.1 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-3.0.0 app/views/admin/orders/_order_item_fields.html.haml