Add a button to automatically add the ordered amount once delivered

This commit is contained in:
Fabian Wunsch 2025-09-16 08:21:55 +02:00
parent b62d4aaeb7
commit e6b1b533a8
5 changed files with 47 additions and 0 deletions

View file

@ -39,6 +39,14 @@
</a>
{% endif %}
{% if is_granted('edit', part) %}
<br>
<a class="btn btn-info mt-2" href="{{ entity_url(part, 'delivered') }}">
<i class="fas fa-cloud-arrow-down"></i>
{% trans %}part.delivered.btn{% endtrans %}
</a>
{% endif %}
<form method="post" class="mt-2" action="{{ entity_url(part, 'delete') }}"
{{ stimulus_controller('elements/delete_btn') }} {{ stimulus_action('elements/delete_btn', "submit", "submit") }}