Sha256: b46c5994783089ca93076129d0b25abbf9bd716f43c236c7fec7e11de9163429

Contents?: true

Size: 612 Bytes

Versions: 5

Compression:

Stored size: 612 Bytes

Contents

.row.align-items-center
  = f.fields_for :purchasable, (f.object.purchasable || f.object.build_purchasable) do |pf|
    -# Order item fields
    .col
      = f.hidden_field :purchasable_id
      = f.hidden_field :purchasable_type
      = f.number_field :quantity, input_html: { value: f.object.quantity || 1, min: 1 }

    -# Purchasable fields
    .col
      = pf.hidden_field :id
      = pf.text_field :name

    .col= pf.price_field :price

    .col
      .mt-4= qb_item_name_field(pf)

    .col= pf.check_box :tax_exempt, label: "Tax Exempt", title: 'When checked, tax will not be applied to this item'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
effective_orders-6.19.4 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.19.3 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.19.2 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.19.1 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.19.0 app/views/admin/orders/_order_item_fields.html.haml