mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-04 02:05:16 +02:00
Allow to specify which label profiles are shown in dropdown.
This commit is contained in:
parent
3804e2534d
commit
8b372a3443
8 changed files with 64 additions and 80 deletions
|
@ -4,10 +4,13 @@
|
|||
<i class="fas fa-fw fa-qrcode"></i> {% if include_text %}{% trans %}label_generator.label_btn{% endtrans %}{% endif %}
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
{% for profile in label_profile_dropdown_helper.dropdownProfiles(type) %}
|
||||
{% set profiles = label_profile_dropdown_helper.dropdownProfiles(type) %}
|
||||
{% for profile in profiles %}
|
||||
<a class="dropdown-item" href="{{ path('label_dialog_profile', {'profile': profile.id, 'target_type': type, 'target_id': id, 'generate': true}) }}">{{ profile.name }}</a>
|
||||
{% endfor %}
|
||||
<div class="dropdown-divider"></div>
|
||||
{% if profiles is not empty %}
|
||||
<div class="dropdown-divider"></div>
|
||||
{% endif %}
|
||||
<a class="dropdown-item" href="{{ path('label_dialog', {'target_type': type, 'target_id': id}) }}">{% trans %}label_generator.label_empty{% endtrans %}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue