<div class="table-responsive">
  <table class="table table-striped">
    <thead>
      <tr>
        <th colspan="2">Produkty</th>
        <th>Cena</th>
        <th>Ilość</th>
        <th colspan="2">Razem</th>
      </tr>
    </thead>
    <tbody>
      <% @cart.cart_products.each do |cart_product| %>
      <tr>
        <%= render partial: '/cart/partials/pq_tr_data', locals: {cart_product: cart_product, ca: ca} %>
      </tr>
      <% end %>
    </tbody>
  </table>
  <!-- end table -->
</div>
<script>
$( document ).ready(function() {
  $('.product_qty').change(function() {
    changeQty(this.id, $(this).val(), '<%= ca %>');
  });
});
</script>
