Added a "create from label scan button to navbar"

This commit is contained in:
Jan Böhmer 2026-02-22 22:03:46 +01:00
parent 2ba0f2a95d
commit cee6c0ef11
2 changed files with 15 additions and 0 deletions

View file

@ -60,6 +60,15 @@
</a>
</li>
{% endif %}
{% if is_granted("@tools.label_scanner") %}
<li>
<a class="dropdown-item" href="{{ path('scan_dialog') }}">
<i class="fa-fw fa-solid fa-camera-retro"></i>
{% trans %}parts.create_from_scan.title{% endtrans %}
</a>
</li>
{% endif %}
{% endif %}
{% if is_granted('@parts.import') %}

View file

@ -12563,5 +12563,11 @@ Buerklin-API Authentication server:
<target>Create [part] from barcode</target>
</segment>
</unit>
<unit id="xH258F." name="parts.create_from_scan.title">
<segment>
<source>parts.create_from_scan.title</source>
<target>Create [part] from label scan</target>
</segment>
</unit>
</file>
</xliff>