Sha256: 62c07a688d1837e8528a958d218fbf0eac843e13d74b892d17075a24be60c923

Contents?: true

Size: 647 Bytes

Versions: 24

Compression:

Stored size: 647 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: (defined?(EffectiveFormInputs) ? :effective_price : :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

24 entries across 24 versions & 1 rubygems

Version Path
effective_orders-2.2.4 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.2.3 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.2.2 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.2.1 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.2.0 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.1.17 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.1.16 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.1.15 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.1.14 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.1.13 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.1.12 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.1.10 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.1.9 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.1.8 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.1.7 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.1.6 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.1.5 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.1.4 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.1.3 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-2.1.2 app/views/admin/orders/_order_item_fields.html.haml