_special_price.html.erb 1.0 KB

123456789101112131415161718192021222324
  1. <tr id="special_price_<%= special_price.id %>">
  2. <td> # </td>
  3. <td> <%= special_price.product.sku %> </td>
  4. <td>
  5. <%= special_price.product.name %><br>
  6. <%= special_price.product.display_attributes %>
  7. </td>
  8. <td class="text-center">
  9. <img src="<%= special_price.product.small_img %>" width="100" height="100"/>
  10. </td>
  11. <td>
  12. <%= number_to_currency(special_price.product.price_sale, precision: 2) %>
  13. <%= hidden_field_tag 'product_price_sale', special_price.product.price_sale %>
  14. </td>
  15. <td>
  16. <input class="form-control" id="price_<%= special_price.id %>" type="number" value="<%=special_price.price %>" min="0" oninput="updateProductPrice($(this))" />
  17. </td>
  18. <td>
  19. <input class="form-control input-small" id="percent_<%= special_price.id %>" type="number" value="<%=special_price.percent %>" min="0" max="100" oninput="updateProductPercent($(this))" />
  20. </td>
  21. <td class="text-center">
  22. <button type="button" class="btn btn-icon-only btn-danger" onclick="deleteRow($(this))"><i class="fa fa-trash-o"></i></button>
  23. </td>
  24. </tr>