Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.08 KB | None | 0 0
  1. <div class="tab-pane" id="tab-special">
  2. <div class="table-responsive">
  3. <table id="special" class="table table-striped table-bordered table-hover">
  4. <thead>
  5. <tr>
  6. <td class="text-left">{{ entry_customer_group }}</td>
  7. <td class="text-right">{{ entry_priority }}</td>
  8. <td class="text-right">Typ</td>
  9. <td class="text-right">{{ entry_price }}</td>
  10. <td class="text-left">{{ entry_date_start }}</td>
  11. <td class="text-left">{{ entry_date_end }}</td>
  12. <td></td>
  13. </tr>
  14. </thead>
  15. <tbody>
  16.  
  17. {% set special_row = 0 %}
  18. {% for product_special in product_specials %}
  19. <tr id="special-row{{ special_row }}">
  20. <td class="text-left">
  21. <select name="product_special[{{ special_row }}][customer_group_id]" class="form-control">
  22.  
  23. {% for customer_group in customer_groups %}
  24. {% if customer_group.customer_group_id == product_special.customer_group_id %}
  25.  
  26. <option value="{{ customer_group.customer_group_id }}" selected="selected">{{ customer_group.name }}</option>
  27.  
  28. {% else %}
  29.  
  30. <option value="{{ customer_group.customer_group_id }}">{{ customer_group.name }}</option>
  31.  
  32. {% endif %}
  33. {% endfor %}
  34.  
  35. </select>
  36. </td>
  37. <td class="text-right"><input type="text" name="product_special[{{ special_row }}][priority]" value="{{ product_special.priority }}" placeholder="{{ entry_priority }}" class="form-control"/></td>
  38. <td class="text-right">
  39. <select id="special-option{{special_row}}" name="product_special[{{ special_row }}][price_prefix]">
  40. <option value="=" {% if product_special.price_prefix == "=" %} selected="selected"{% endif %}>=</option>
  41. {#<option value="-" {% if product_special.price_prefix == "-" %} selected="selected"{% endif %}>-</option>#}
  42. {#<option value="+" {% if product_special.price_prefix == "+" %} selected="selected"{% endif %}>+</option>#}
  43. {#<option value="=%" {% if product_special.price_prefix == "=%" %} selected="selected"{% endif %}>=%</option>#}
  44. <option value="-%" {% if product_special.price_prefix == "-%" %} selected="selected"{% endif %}>-%</option>
  45. {#<option value="+%" {% if product_special.price_prefix == "+%" %} selected="selected"{% endif %}>+%</option>#}
  46. </select>
  47. </td>
  48. <td class="text-right"><input type="text" value="{{ product_special.price_brutto }}" placeholder="{{ entry_price }}" class="form-control js-calculate-price" data-calculate-to="#specialprice{{ special_row }}"/><br/><input type="text" name="product_special[{{ special_row }}][price]" value="{{ product_special.price }}" placeholder="Cena netto lub wartość" class="form-control" id="specialprice{{ special_row }}"/></td>
  49. <td class="text-left" style="width: 20%;">
  50. <div class="input-group date">
  51. <input type="text" name="product_special[{{ special_row }}][date_start]" value="{{ product_special.date_start }}" placeholder="{{ entry_date_start }}" data-date-format="YYYY-MM-DD" class="form-control"/>
  52. <span class="input-group-btn">
  53. <button class="btn btn-default" type="button">
  54. <i class="fa fa-calendar"></i>
  55. </button>
  56. </span>
  57. </div>
  58. </td>
  59. <td class="text-left" style="width: 20%;">
  60. <div class="input-group date">
  61. <input type="text" name="product_special[{{ special_row }}][date_end]" value="{{ product_special.date_end }}" placeholder="{{ entry_date_end }}" data-date-format="YYYY-MM-DD" class="form-control"/>
  62. <span class="input-group-btn">
  63. <button class="btn btn-default" type="button">
  64. <i class="fa fa-calendar"></i>
  65. </button>
  66. </span>
  67. </div>
  68. </td>
  69. <td class="text-left">
  70. <button type="button" onclick="$('#special-row{{ special_row }}').remove();" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger">
  71. <i class="fa fa-minus-circle"></i>
  72. </button>
  73. </td>
  74. </tr>
  75. {% set special_row = special_row + 1 %}
  76. {% endfor %}
  77. </tbody>
  78.  
  79. <tfoot>
  80. <tr>
  81. <td colspan="5"></td>
  82. <td class="text-left">
  83. <button type="button" onclick="addSpecial();" data-toggle="tooltip" title="{{ button_special_add }}" class="btn btn-primary">
  84. <i class="fa fa-plus-circle"></i>
  85. </button>
  86. </td>
  87. </tr>
  88. </tfoot>
  89. </table>
  90. </div>
  91. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement