Added links to bom import to project edit and info page

This commit is contained in:
Jan Böhmer 2023-03-16 23:56:46 +01:00
parent f3449babc1
commit e550918d7c
3 changed files with 31 additions and 5 deletions

View file

@ -51,5 +51,12 @@
{% form_theme form.bom_entries with ['form/collection_types_layout.html.twig'] %}
{{ form_errors(form.bom_entries) }}
{{ form_widget(form.bom_entries) }}
{% if entity.id %}
<a href="{{ path('project_import_bom', {'id': entity.id}) }}" class="btn btn-secondary mb-2"
{% if not is_granted('edit', entity) %}disabled="disabled"{% endif %}>
<i class="fa-solid fa-file-import fa-fw"></i>
{% trans %}project.edit.bom.import_bom{% endtrans %}
</a>
{% endif %}
</div>
{% endblock %}