Added dropdowns for quick generating labels for different profiles.

This commit is contained in:
Jan Böhmer 2020-05-01 20:29:18 +02:00
parent 747962884a
commit 48ff81a6d1
8 changed files with 118 additions and 3 deletions

View file

@ -1,4 +1,5 @@
{% import "helper.twig" as helper %}
{% import "LabelSystem/dropdown_macro.html.twig" as dropdown %}
<table class="table table-striped table-hover table-responsive-sm">
<thead>
@ -7,6 +8,7 @@
<th>{% trans %}part_lots.storage_location{% endtrans %}</th>
<th>{% trans %}part_lots.amount{% endtrans %}</th>
<th></th> {# Tags row #}
<th></th> {# Button row #}
</tr>
</thead>
@ -55,6 +57,9 @@
{% endif %}
</h6>
</td>
<td>
{{ dropdown.profile_dropdown('part_lot', lot.id, false) }}
</td>
</tr>
{% endfor %}
</tbody>

View file

@ -1,3 +1,5 @@
{% import "LabelSystem/dropdown_macro.html.twig" as dropdown %}
{% if is_granted('edit', part) %}
<a href="{{ part|entityURL('edit') }}" class="btn btn-primary mt-3">
<i class="fas fa-fw fa-edit"></i>
@ -46,4 +48,6 @@
</div>
</div>
</div>
</form>
</form>
{{ dropdown.profile_dropdown('part', part.id) }}