Part-DB.Part-DB-server/templates/projects/info/_bom.html.twig

11 lines
477 B
Twig
Raw Normal View History

2022-12-31 14:17:46 +01:00
{% import "components/datatables.macro.html.twig" as datatables %}
<div class="mb-2"></div>
{{ datatables.datatable(datatable, 'elements/datatables/datatables', 'projects') }}
<a class="btn btn-success" {% if not is_granted('@projects.edit') %}disabled{% endif %}
2022-12-31 14:17:46 +01:00
href="{{ path('project_add_parts', {"id": project.id, "_redirect": app.request.requestUri}) }}">
<i class="fa-solid fa-square-plus fa-fw"></i>
{% trans %}project.info.bom_add_parts{% endtrans %}
</a>