Improved the association edit panel

This commit is contained in:
Jan Böhmer 2023-11-13 23:01:59 +01:00
parent 8ab9cf1417
commit 81f8b365e9
5 changed files with 70 additions and 1 deletions

View file

@ -183,4 +183,20 @@
</td>
</tr>
{% endblock %}
{% block part_association_widget %}
{% import 'components/collection_type.macro.html.twig' as collection %}
<tr>
<td>
{{ form_widget(form) }}
</td>
<td>
<button type="button" class="btn btn-danger lot_btn_delete" {{ collection.delete_btn() }}>
<i class="fas fa-trash-alt fa-fw"></i>
{% trans %}part_lot.delete{% endtrans %}
</button>
{{ form_errors(form) }}
</td>
</tr>
{% endblock %}