2022-12-31 14:17:46 +01:00
|
|
|
{% import "components/datatables.macro.html.twig" as datatables %}
|
|
|
|
|
2023-07-02 20:49:10 +02:00
|
|
|
<div class="btn-group mb-2 mt-2">
|
2023-03-16 23:56:46 +01:00
|
|
|
<a class="btn btn-success" {% if not is_granted('@projects.edit') %}disabled{% endif %}
|
2023-11-11 23:14:22 +01:00
|
|
|
href="{{ path('project_add_parts', {"id": project.id, "_redirect": app.request.baseUrl ~ app.request.requestUri}) }}">
|
2023-03-16 23:56:46 +01:00
|
|
|
<i class="fa-solid fa-square-plus fa-fw"></i>
|
|
|
|
{% trans %}project.info.bom_add_parts{% endtrans %}
|
|
|
|
</a>
|
|
|
|
<button type="button" class="btn btn-success dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
|
|
|
|
<span class="visually-hidden">Toggle Dropdown</span>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li>
|
|
|
|
<a class="dropdown-item" href="{{ path('project_import_bom', {'id': project.id}) }}" {% if not is_granted('edit', project) %}disabled="disabled"{% endif %}>
|
|
|
|
<i class="fa-solid fa-file-import fa-fw"></i>
|
|
|
|
{% trans %}project.edit.bom.import_bom{% endtrans %}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2023-06-27 00:11:16 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ datatables.datatable(datatable, 'elements/datatables/datatables', 'projects') }}
|