Sha256: 810d8ff795e21c3fd8c087c28ded403b2d44c72902a4d5c19ab0e1e42222512b

Contents?: true

Size: 785 Bytes

Versions: 11

Compression:

Stored size: 785 Bytes

Contents

= effective_form_with(model: qb_order_items_form, 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.fields_for :qb_order_items, order_item.qb_order_item do |foi|
                = foi.hidden_field :order_item_id, value: order_item.id
                = foi.text_field :name, label: false, required: false

  = f.submit 'Save QuickBooks Item Names'

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
effective_qb_sync-1.3.7 app/views/admin/qb_syncs/_form.html.haml
effective_qb_sync-1.3.6 app/views/admin/qb_syncs/_form.html.haml
effective_qb_sync-1.3.5 app/views/admin/qb_syncs/_form.html.haml
effective_qb_sync-1.3.4 app/views/admin/qb_syncs/_form.html.haml
effective_qb_sync-1.3.3 app/views/admin/qb_syncs/_form.html.haml
effective_qb_sync-1.3.2 app/views/admin/qb_syncs/_form.html.haml
effective_qb_sync-1.3.1 app/views/admin/qb_syncs/_form.html.haml
effective_qb_sync-1.3.0 app/views/admin/qb_syncs/_form.html.haml
effective_qb_sync-1.2.5 app/views/admin/qb_syncs/_form.html.haml
effective_qb_sync-1.2.4 app/views/admin/qb_syncs/_form.html.haml
effective_qb_sync-1.2.3 app/views/admin/qb_syncs/_form.html.haml