Add 'Add stock' button to part stock info page (#1352)

* Add 'Add stock' button to part stock info page

* Use outline-success style for new stock button on part info page

---------

Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
This commit is contained in:
kernchen-brc 2026-05-04 22:12:30 +02:00 committed by GitHub
parent 1d1e3008aa
commit 83074a2403
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 96 additions and 1 deletions

View file

@ -3,6 +3,7 @@
{% include "parts/info/_withdraw_modal.html.twig" %}
{% include "parts/info/_stocktake_modal.html.twig" %}
{% include "parts/info/_add_lot_modal.html.twig" %}
<div class="table-responsive">
<table class="table table-striped table-hover">
@ -126,3 +127,10 @@
</table>
</div>
{% if add_lot_form is not null %}
<button type="button" class="btn btn-outline-success" data-bs-toggle="modal" data-bs-target="#add-lot-modal">
<i class="fas fa-plus-square fa-fw"></i>
{% trans %}part_lot.create{% endtrans %}
</button>
{% endif %}