Part-DB.Part-DB-server/templates/Parts/lists/_action_bar.html.twig
Jan Böhmer 92e477775a Use relative path in templates instead of full pathes
This fixes problems with HTTP/HTTPS mixing
2022-08-04 21:00:42 +02:00

6 lines
No EOL
357 B
Twig

<div class="row mb-3">
<div class="col">
<a href="{{ path('part_new', url_options) }}" class="btn btn-success float-start {% if not is_granted("@parts.create") or (entity is defined and entity.notSelectable) %}disabled{% endif %}"><i class="fas fa-plus-square fa-fw"></i>
{% trans%}part.create.btn{% endtrans %}</a>
</div>
</div>