added redirection to part page on successful scan of lcsc, digikey, and mouser barcodes. added create part button if part does not exist in database

This commit is contained in:
swdee 2026-01-16 13:59:26 +13:00
parent 4325f9e0e6
commit f3cd32cc91
2 changed files with 110 additions and 6 deletions

View file

@ -26,7 +26,16 @@
{% if infoModeData %}
<hr>
<h4>{% trans %}label_scanner.decoded_info.title{% endtrans %}</h4>
<div class="d-flex align-items-center mb-2">
<h4 class="mb-0">{% trans %}label_scanner.decoded_info.title{% endtrans %}</h4>
{% if createUrl %}
<a class="btn btn-primary ms-2" href="{{ createUrl }}"
target="_blank" title="{% trans %}part.create.btn{% endtrans %}">
<i class="fa-solid fa-plus-square"></i>
</a>
{% endif %}
</div>
<table class="table table-striped table-hover table-bordered table-sm">
<tbody>