{#
 # For the full copyright and license information, please view the
 # docs/licenses/LICENSE.txt file that was distributed with this source code.
 #}

<tr id="editProductTableRowTemplate" class="d-none editProductRow">
  <td class="cellProductImg"></td>
  <td class="cellProductName"></td>
  <td class="cellProductTaxes pr-5">
    {{ form_row(editProductRowForm.price_tax_excluded, {
      attr: {
        'data-modal-edit-price-title': 'Edit the price'|trans({}, 'Admin.Orderscustomers.Feature'),
        'data-modal-edit-price-apply': 'Edit'|trans({}, 'Admin.Actions'),
        'data-modal-edit-price-cancel': 'Cancel'|trans({}, 'Admin.Actions'),
        'data-modal-edit-price-body': 'Are you sure you want to edit this product price? It will be applied to all identical products in this order.'|trans({}, 'Admin.Orderscustomers.Notification'),
      }})
    }}
    {{ form_row(editProductRowForm.price_tax_included) }}
  </td>
  <td class="cellProductQuantity pr-5">
    {{ form_row(editProductRowForm.quantity, {type: 'number'}) }}
  </td>
  <td class="editProductLocation cellProductLocation"></td>
  <td class="editProductRefunded cellProductRefunded"></td>
  <td class="editProductAvailable{% if not isAvailableQuantityDisplayed %} d-none{% endif %}"></td>
  <td class="editProductTotalPrice"></td>
  {% if orderForViewing.hasInvoice() %}
    <td class="cellProductInvoice">
      {{ form_row(editProductRowForm.invoice, {
        attr: {
          'data-modal-edit-price-title': 'Edit the price'|trans({}, 'Admin.Orderscustomers.Feature'),
          'data-modal-edit-price-apply': 'Edit'|trans({}, 'Admin.Actions'),
          'data-modal-edit-price-cancel': 'Cancel'|trans({}, 'Admin.Actions'),
          'data-modal-edit-price-body': 'Are you sure you want to edit this product price? It will be applied to all invoices of this order.'|trans({}, 'Admin.Orderscustomers.Notification'),
        }})
      }}
    </td>
  {% endif %}
  <td class="editProductActions text-right">
    <div class="editProductActions-container btn-group">
      {{ form_row(editProductRowForm.cancel) }}
      {{ form_row(editProductRowForm.save) }}
    </div>
  </td>
</tr>
