mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-13 04:59:36 +00:00
Use stimulus collection controller for partLots
This commit is contained in:
parent
537b7fad7f
commit
66b7b2e9bf
6 changed files with 41 additions and 59 deletions
|
|
@ -80,4 +80,22 @@
|
|||
{{ form_errors(form) }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endblock %}
|
||||
|
||||
{% block part_lot_widget %}
|
||||
{% import 'components/collection_type.macro.html.twig' as collection %}
|
||||
<tr>
|
||||
<td>
|
||||
{{ form_widget(form) }}
|
||||
</td>
|
||||
<td>
|
||||
{% dump(form) %}
|
||||
<button type="button" class="btn btn-danger lot_btn_delete" {{ collection.delete_btn() }}
|
||||
{% if not is_granted('lots.delete', form.parent.parent.vars.data) %}disabled{% endif %}>
|
||||
<i class="fas fa-trash-alt fa-fw"></i>
|
||||
{% trans %}part_lot.delete{% endtrans %}
|
||||
</button>
|
||||
{{ form_errors(form) }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue