Sha256: b17b3fe8d94979cd0e8b13cbebdf1f7f2990d3374af6628b646a2bf09cfe8690

Contents?: true

Size: 729 Bytes

Versions: 23

Compression:

Stored size: 729 Bytes

Contents

.nested-fields.order-item
  .row.align-items-center
    = f.fields_for :purchasable, (f.object.purchasable || Effective::Product.new) do |pf|
      .col-md-2= f.number_field :quantity, input_html: { value: f.object.quantity || 1, min: 1 }
      .col-md-4= pf.text_field :name, maxlength: 255
      .col-md-2= pf.price_field :price

      - if defined?(EffectiveQbSync)
        .col-md-2= pf.text_field :qb_item_name, maxlength: 255, label: 'Quickbooks Item'

      .col-md-2.mt-4= pf.check_box :tax_exempt, label: "Tax Exempt", title: 'When checked, tax will not be applied to this item'
      .col-md-1
        = link_to_remove_association(f, 'data-confirm': 'Remove?') do
          = icon('trash-2', class: 'text-danger')

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
effective_orders-4.6.3 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.6.2 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.6.0 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.5.12 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.5.11 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.5.10 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.5.9 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.5.8 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.5.7 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.5.6 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.5.5 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.5.4 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.5.3 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.5.2 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.5.1 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.5.0 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.4.10 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.4.9 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.4.8 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.4.7 app/views/admin/orders/_order_item_fields.html.haml