mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-04 02:05:16 +02:00
Added an page for editing order informations
This commit is contained in:
parent
1776cd9a77
commit
8c6342bffe
14 changed files with 504 additions and 12 deletions
59
templates/Parts/edit/edit_form_styles.html.twig
Normal file
59
templates/Parts/edit/edit_form_styles.html.twig
Normal file
|
@ -0,0 +1,59 @@
|
|||
{% block pricedetail_widget %}
|
||||
<tr>
|
||||
<td>{{ form_widget(form.minDiscountQuantity) }} {{ form_errors(form.minDiscountQuantity) }}</td>
|
||||
<td>
|
||||
<div class="input-group">
|
||||
{{ form_widget(form.price) }}
|
||||
<div class="input-group-append">
|
||||
{{ form_widget(form.currency) }}
|
||||
</div>
|
||||
</div>
|
||||
{{ form_errors(form.price) }}
|
||||
{{ form_errors(form.currency) }}
|
||||
</td>
|
||||
<td>{{ form_widget(form.priceRelatedQuantity) }} {{ form_errors(form.price) }}</td>
|
||||
<td><button type="button" class="btn btn-danger order_btn_delete" title="{% trans %}orderdetail.delete{% endtrans %}" onclick="delete_pricedetail_entry(this);">
|
||||
<i class="fas fa-trash-alt fa-fw"></i>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
{% endblock %}
|
||||
|
||||
{% block orderdetail_widget %}
|
||||
<tr>
|
||||
<td>
|
||||
{{ form_row(form.supplierpartnr) }}
|
||||
{{ form_row(form.supplier) }}
|
||||
{{ form_row(form.supplierProductUrl) }}
|
||||
{{ form_row(form.obsolete) }}
|
||||
</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>
|
||||
<button type="button" class="btn btn-danger order_btn_delete" onclick="delete_orderdetail_entry(this);">
|
||||
<i class="fas fa-trash-alt fa-fw"></i>
|
||||
{% trans %}orderdetail.delete{% endtrans %}
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue