Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="tab-pane" id="tab-special">
- <div class="table-responsive">
- <table id="special" class="table table-striped table-bordered table-hover">
- <thead>
- <tr>
- <td class="text-left">{{ entry_customer_group }}</td>
- <td class="text-right">{{ entry_priority }}</td>
- <td class="text-right">Typ</td>
- <td class="text-right">{{ entry_price }}</td>
- <td class="text-left">{{ entry_date_start }}</td>
- <td class="text-left">{{ entry_date_end }}</td>
- <td></td>
- </tr>
- </thead>
- <tbody>
- {% set special_row = 0 %}
- {% for product_special in product_specials %}
- <tr id="special-row{{ special_row }}">
- <td class="text-left">
- <select name="product_special[{{ special_row }}][customer_group_id]" class="form-control">
- {% for customer_group in customer_groups %}
- {% if customer_group.customer_group_id == product_special.customer_group_id %}
- <option value="{{ customer_group.customer_group_id }}" selected="selected">{{ customer_group.name }}</option>
- {% else %}
- <option value="{{ customer_group.customer_group_id }}">{{ customer_group.name }}</option>
- {% endif %}
- {% endfor %}
- </select>
- </td>
- <td class="text-right"><input type="text" name="product_special[{{ special_row }}][priority]" value="{{ product_special.priority }}" placeholder="{{ entry_priority }}" class="form-control"/></td>
- <td class="text-right">
- <select id="special-option{{special_row}}" name="product_special[{{ special_row }}][price_prefix]">
- <option value="=" {% if product_special.price_prefix == "=" %} selected="selected"{% endif %}>=</option>
- {#<option value="-" {% if product_special.price_prefix == "-" %} selected="selected"{% endif %}>-</option>#}
- {#<option value="+" {% if product_special.price_prefix == "+" %} selected="selected"{% endif %}>+</option>#}
- {#<option value="=%" {% if product_special.price_prefix == "=%" %} selected="selected"{% endif %}>=%</option>#}
- <option value="-%" {% if product_special.price_prefix == "-%" %} selected="selected"{% endif %}>-%</option>
- {#<option value="+%" {% if product_special.price_prefix == "+%" %} selected="selected"{% endif %}>+%</option>#}
- </select>
- </td>
- <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>
- <td class="text-left" style="width: 20%;">
- <div class="input-group date">
- <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"/>
- <span class="input-group-btn">
- <button class="btn btn-default" type="button">
- <i class="fa fa-calendar"></i>
- </button>
- </span>
- </div>
- </td>
- <td class="text-left" style="width: 20%;">
- <div class="input-group date">
- <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"/>
- <span class="input-group-btn">
- <button class="btn btn-default" type="button">
- <i class="fa fa-calendar"></i>
- </button>
- </span>
- </div>
- </td>
- <td class="text-left">
- <button type="button" onclick="$('#special-row{{ special_row }}').remove();" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger">
- <i class="fa fa-minus-circle"></i>
- </button>
- </td>
- </tr>
- {% set special_row = special_row + 1 %}
- {% endfor %}
- </tbody>
- <tfoot>
- <tr>
- <td colspan="5"></td>
- <td class="text-left">
- <button type="button" onclick="addSpecial();" data-toggle="tooltip" title="{{ button_special_add }}" class="btn btn-primary">
- <i class="fa fa-plus-circle"></i>
- </button>
- </td>
- </tr>
- </tfoot>
- </table>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement