Sha256: b8a90c6f5c8a40c37f9b8b59318d6cfe033c802ebc4193f5b13b59ea578d5d98

Contents?: true

Size: 886 Bytes

Versions: 6

Compression:

Stored size: 886 Bytes

Contents

= simple_form_for qb_order_items_form, (EffectiveOrders.admin_simple_form_options || {}).merge(url: effective_qb_sync.admin_qb_sync_path(qb_order_items_form)) do |f|
  %table.table
    %thead
      %tr
        %th Order
        %th Order Item
        %th Quickbooks Item Name
    %tbody
      - qb_ticket.orders.each do |order|
        - order.order_items.each_with_index do |order_item, index|
          %tr
            %td= (link_to(('#' + order.to_param.to_s), effective_orders.admin_order_path(order)) if index == 0)
            %td= order_item
            %td
              = f.simple_fields_for :qb_order_items, order_item.qb_order_item do |foi|
                = foi.input :order_item_id, as: :hidden, value: order_item.id
                = foi.input :name, label: false, required: false

  %p= f.button :submit, 'Save Quickbooks Item Names', data: { disable_with: 'Saving...' }

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
effective_qb_sync-1.2.5 app/views/admin/qb_syncs/_simple_form.html.haml
effective_qb_sync-1.2.4 app/views/admin/qb_syncs/_simple_form.html.haml
effective_qb_sync-1.2.3 app/views/admin/qb_syncs/_simple_form.html.haml
effective_qb_sync-1.2.2 app/views/admin/qb_syncs/_simple_form.html.haml
effective_qb_sync-1.2.1 app/views/admin/qb_syncs/_simple_form.html.haml
effective_qb_sync-1.2.0 app/views/admin/qb_syncs/_simple_form.html.haml