Sha256: 13f56f781c1f0c62a5f245b6c15eb4f50e5622f8563e196d9994b214a59a2672

Contents?: true

Size: 744 Bytes

Versions: 43

Compression:

Stored size: 744 Bytes

Contents

.nested-fields.order-item
  .row.align-items-center
    = f.fields_for :purchasable, (f.object.purchasable || Effective::Product.new) do |pf|
      .col-md-1= 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.mt-4
        = link_to_remove_association(f, 'data-confirm': 'Really remove this item?') do
          = icon('x', class: 'btn-danger')

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
effective_orders-4.4.3 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.4.2 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.4.1 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.4.0 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.3.2 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.3.1 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.3.0 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.2.7 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.2.6 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.2.5 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.2.4 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.2.3 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.2.2 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.2.1 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.2.0 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.1.5 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.1.4 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.1.3 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.1.2 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-4.1.1 app/views/admin/orders/_order_item_fields.html.haml