Sha256: bc5f63d82311c5627ab7749ae8f9b1a07d6dd02b05c6232362c851548cc60b32
Contents?: true
Size: 745 Bytes
Versions: 2
Compression:
Stored size: 745 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 :title, 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
effective_orders-4.0.0beta4 | app/views/admin/orders/_order_item_fields.html.haml |
effective_orders-4.0.0beta3 | app/views/admin/orders/_order_item_fields.html.haml |