mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-12 11:24:31 +02:00
* added capability to scan digikey barcodes and open the local part page based on the digikey part number or manufacturer part number * had replaced one too many doublequotes * Generalized interpretation of format06 barcodes, added ids for mouser * Renamed vendor_barcode to user_barcode in entities * Added a own class to parse EIGP114 barcodes * Added tests to EIGP114Barcode parser * Refactored code * Changed BarcodeRedirector to support the new Barcode EIGP114BarcodeScanResult class * Added possibility to just show all information contained in a barcode * Dont require trailer for EIGP114 barcodes, as digikey does not seem to put them onto their barcodes * Fixed inspection issues --------- Co-authored-by: jona <a@b.c> Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
44 lines
1.3 KiB
Twig
44 lines
1.3 KiB
Twig
{% extends 'main_card.html.twig' %}
|
|
|
|
{% block card_title %}<i class="fas fa-camera-retro fa-fw"></i> {% trans %}label_scanner.title{% endtrans %}{% endblock %}
|
|
|
|
{% block card_content %}
|
|
<div class="alert alert-warning d-none" id="scanner-warning">
|
|
<strong>{% trans %}label_scanner.no_cam_found.title{% endtrans %}</strong>: {% trans %}label_scanner.no_cam_found.text{% endtrans %}
|
|
</div>
|
|
|
|
<div class="">
|
|
<div class="form-group row">
|
|
<div class="offset-sm-3 col-sm-9">
|
|
|
|
<div class="img-thumbnail" style="max-width: 600px;">
|
|
<div id="reader-box" {{ stimulus_controller('pages/barcode_scan') }}></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ form_start(form, {'attr': {'id': 'scan_dialog_form'}}) }}
|
|
|
|
{{ form_end(form) }}
|
|
|
|
|
|
{% if infoModeData %}
|
|
<hr>
|
|
<h4>{% trans %}label_scanner.decoded_info.title{% endtrans %}</h4>
|
|
|
|
<table class="table table-striped table-hover table-bordered table-sm">
|
|
<tbody>
|
|
{% for key, value in infoModeData %}
|
|
<tr>
|
|
<td>{{ key }}</td>
|
|
<td><code>{{ value }}</code></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|