2019-08-30 14:25:05 +02:00
|
|
|
{% block pricedetail_widget %}
|
2019-08-30 14:40:02 +02:00
|
|
|
{% form_theme form.currency 'Form/extendedBootstrap4_layout.html.twig' %}
|
|
|
|
|
2019-08-30 14:25:05 +02:00
|
|
|
<tr>
|
2019-08-30 14:40:02 +02:00
|
|
|
<td>{{ form_widget(form.minDiscountQuantity, {'attr': {'class': 'form-control-sm'}}) }} {{ form_errors(form.minDiscountQuantity) }}</td>
|
2019-08-30 14:25:05 +02:00
|
|
|
<td>
|
2019-08-30 14:40:02 +02:00
|
|
|
<div class="input-group input-group-sm">
|
2019-08-30 14:25:05 +02:00
|
|
|
{{ form_widget(form.price) }}
|
|
|
|
<div class="input-group-append">
|
2019-08-30 14:40:02 +02:00
|
|
|
{{ form_widget(form.currency, {'attr': {'class': 'selectpicker form-control-sm'}}) }}
|
2019-08-30 14:25:05 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ form_errors(form.price) }}
|
|
|
|
{{ form_errors(form.currency) }}
|
|
|
|
</td>
|
2019-08-30 14:40:02 +02:00
|
|
|
<td>{{ form_widget(form.priceRelatedQuantity, {'attr': {'class': 'form-control-sm'}}) }} {{ form_errors(form.price) }}</td>
|
|
|
|
<td><button type="button" class="btn btn-danger order_btn_delete btn-sm" title="{% trans %}orderdetail.delete{% endtrans %}" onclick="delete_pricedetail_entry(this);">
|
2019-08-30 14:25:05 +02:00
|
|
|
<i class="fas fa-trash-alt fa-fw"></i>
|
|
|
|
</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block orderdetail_widget %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
2019-08-30 14:40:02 +02:00
|
|
|
{{ form_row(form.supplierpartnr, {'attr': {'class': 'form-control-sm'}}) }}
|
|
|
|
{{ form_row(form.supplier, {'attr': {'class': 'form-control-sm'}}) }}
|
|
|
|
{{ form_row(form.supplierProductUrl, {'attr': {'class': 'form-control-sm'}}) }}
|
|
|
|
{{ form_widget(form.obsolete) }}
|
2019-08-30 14:25:05 +02:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<table class="table table-sm table-bordered" data-prototype="{{ form_widget(form.priceDetails.vars.prototype)|e('html_attr') }}">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Min Qty.</th>
|
|
|
|
<th>Price</th>
|
|
|
|
<th>Price Qty</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for price in form.priceDetails %}
|
|
|
|
{{ form_widget(price) }}
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-success" onclick="create_pricedetail_entry(this)">
|
|
|
|
<i class="fas fa-plus-square fa-fw"></i>
|
|
|
|
{% trans %}pricedetail.create{% endtrans %}
|
|
|
|
</button>
|
|
|
|
</td>
|
|
|
|
<td>
|
2019-08-30 14:40:02 +02:00
|
|
|
<button type="button" class="btn btn-danger order_btn_delete" onclick="delete_orderdetail_entry(this);" title="{% trans %}orderdetail.delete{% endtrans %}">
|
2019-08-30 14:25:05 +02:00
|
|
|
<i class="fas fa-trash-alt fa-fw"></i>
|
|
|
|
</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endblock %}
|