Moved add bom entries button to top of BOM table

This commit is contained in:
Jan Böhmer 2023-06-27 00:11:16 +02:00
parent 49cf20545f
commit 742f1f4622

View file

@ -1,10 +1,6 @@
{% import "components/datatables.macro.html.twig" as datatables %}
<div class="mb-2"></div>
{{ datatables.datatable(datatable, 'elements/datatables/datatables', 'projects') }}
<div class="btn-group">
<div class="btn-group mb-2">
<a class="btn btn-success" {% if not is_granted('@projects.edit') %}disabled{% endif %}
href="{{ path('project_add_parts', {"id": project.id, "_redirect": app.request.requestUri}) }}">
<i class="fa-solid fa-square-plus fa-fw"></i>
@ -21,4 +17,6 @@
</a>
</li>
</ul>
</div>
</div>
{{ datatables.datatable(datatable, 'elements/datatables/datatables', 'projects') }}