<commit_before><% if order.line_items.assemblies.any? %>
  <fieldset class="no-border-bottom">
    <legend align="center" class="" data-hook="">
      Product Bundles
    </legend>
  </fieldset>

  <table class="product-bundles" data-hook="">
    <colgroup>
      <col style="width: 10%;" />
      <col style="width: 30%;" />
      <col style="width: 15%;" />
      <col style="width: 15%;" />
      <col style="width: 15%;" />
      <col style="width: 15%;" />
    </colgroup>

    <thead>
      <th colspan="2"><%= Spree.t(:item_description) %></th>
      <th><%= Spree.t(:price) %></th>
      <th><%= Spree.t(:quantity) %></th>
      <th><%= Spree.t(:total) %></th>
      <th class="orders-actions actions" data-hook="admin_order_form_line_items_header_actions"></th>
    </thead>

    <% order.line_items.assemblies.each do |item| %>
      <tbody>
        <tr class="" data-item-quantity="<%= item.quantity %>">
          <td class="item-image"><%= mini_image(item.variant) %></td>
          <td class="item-name">
            <%= item.product.name %> - <%= item.variant.sku %> <br />
            <%= "(" + variant_options(item.variant) + ")" unless item.variant.option_values.empty? %>
          </td>
          <td class="item-price align-center">
            <%= item.single_money.to_html %>
          </td>
          <td class="item-qty-show align-center">
            <%= item.quantity %>
          </td>

          <td class="item-qty-edit hidden">
            <%= number_field_tag :quantity, item.quantity, :min => 0, :class => "line_item_quantity", :size => 5 %>
          </td>

          <td class="item-total align-center">
            <%= item.display_amount.to_html %>
          </td>
          <td class="cart-item-delete actions" data-hook="cart_item_delete">
            <% unless item.any_units_shipped? %>
              <% if can? :update, item %>
                <%= link_to '', [:admin, @order, item], :class => 'save-line-item icon_link icon-ok no-text with-tip',
                  :title => Spree.t('actions.save'), :style => 'display: none' %>
                <%= link_to '', '#', :class => 'cancel-line-item icon_link icon-cancel no-text with-tip',
                  :title => Spree.t('actions.cancel'), :style => 'display: none' %>
                <%= link_to '', '#', :class => 'edit-line-item icon_link icon-edit no-text with-tip',
                  :title => Spree.t('edit') %>
                <%= link_to '', [:admin, @order, item], :class => 'delete-line-item icon-trash no-text with-tip',
                  confirm: Spree.t(:are_you_sure), :title => Spree.t('delete') %>
              <% end %>
            <% end %>
          </td>
        </tr>
      </tbody>
    <% end %>
  </table>
<% end %><commit_msg>Replace :confirm option by data: { confirm: "text" }<commit_after><% if order.line_items.assemblies.any? %>
  <fieldset class="no-border-bottom">
    <legend align="center" class="" data-hook="">
      Product Bundles
    </legend>
  </fieldset>

  <table class="product-bundles" data-hook="">
    <colgroup>
      <col style="width: 10%;" />
      <col style="width: 30%;" />
      <col style="width: 15%;" />
      <col style="width: 15%;" />
      <col style="width: 15%;" />
      <col style="width: 15%;" />
    </colgroup>

    <thead>
      <th colspan="2"><%= Spree.t(:item_description) %></th>
      <th><%= Spree.t(:price) %></th>
      <th><%= Spree.t(:quantity) %></th>
      <th><%= Spree.t(:total) %></th>
      <th class="orders-actions actions" data-hook="admin_order_form_line_items_header_actions"></th>
    </thead>

    <% order.line_items.assemblies.each do |item| %>
      <tbody>
        <tr class="" data-item-quantity="<%= item.quantity %>">
          <td class="item-image"><%= mini_image(item.variant) %></td>
          <td class="item-name">
            <%= item.product.name %> - <%= item.variant.sku %> <br />
            <%= "(" + variant_options(item.variant) + ")" unless item.variant.option_values.empty? %>
          </td>
          <td class="item-price align-center">
            <%= item.single_money.to_html %>
          </td>
          <td class="item-qty-show align-center">
            <%= item.quantity %>
          </td>

          <td class="item-qty-edit hidden">
            <%= number_field_tag :quantity, item.quantity, :min => 0, :class => "line_item_quantity", :size => 5 %>
          </td>

          <td class="item-total align-center">
            <%= item.display_amount.to_html %>
          </td>
          <td class="cart-item-delete actions" data-hook="cart_item_delete">
            <% unless item.any_units_shipped? %>
              <% if can? :update, item %>
                <%= link_to '', [:admin, @order, item], :class => 'save-line-item icon_link icon-ok no-text with-tip',
                  :title => Spree.t('actions.save'), :style => 'display: none' %>
                <%= link_to '', '#', :class => 'cancel-line-item icon_link icon-cancel no-text with-tip',
                  :title => Spree.t('actions.cancel'), :style => 'display: none' %>
                <%= link_to '', '#', :class => 'edit-line-item icon_link icon-edit no-text with-tip',
                  :title => Spree.t('edit') %>
                <%= link_to '', [:admin, @order, item], :class => 'delete-line-item icon-trash no-text with-tip',
                  data: { confirm: Spree.t(:are_you_sure) }, :title => Spree.t('delete') %>
              <% end %>
            <% end %>
          </td>
        </tr>
      </tbody>
    <% end %>
  </table>
<% end %>
{'fraction_non_alphanumeric': 0.2041553748870822, 'fraction_numerical': 0.005420054200542005, 'mean_word_length': 2.1312217194570136, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 0, '>': 169, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7143572', 'n_tokens_mistral': 1935, 'n_tokens_neox': 1761, 'n_words': 350}