mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-01 04:49:36 +00:00
Added basic info block when an storage location was found for an barcode
This commit is contained in:
parent
0805a8342a
commit
be767fcacf
2 changed files with 36 additions and 1 deletions
|
|
@ -86,8 +86,43 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% elseif entity %} {# If we have an entity but that is not an part #}
|
||||||
|
|
||||||
|
<div class="card border-success">
|
||||||
|
<h5 class="card-header text-bg-success">
|
||||||
|
<small>{% trans %}label_scanner.target_found{% endtrans %}: {{ type_label(entity) }}</small>
|
||||||
|
{% if openUrl %}
|
||||||
|
<div class="btn-group float-end">
|
||||||
|
<a href="{{ openUrl }}" target="_blank" class="btn btn-sm btn-outline-light"
|
||||||
|
title="{% trans %}label_scanner.open{% endtrans %}">
|
||||||
|
<i class="fa-solid fa-eye"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
</h5>
|
||||||
|
<div class="card-body row">
|
||||||
|
<div class="col-2">
|
||||||
|
<img class="d-block w-100 img-fluid img-thumbnail bg-light part-info-image"
|
||||||
|
src="{{ entity_thumbnail(entity) ?? asset('img/part_placeholder.svg') }}" alt="">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-10">
|
||||||
|
<h4 class="card-title mb-0">{{ entity.name }}</h4>
|
||||||
|
<p>{% trans %}id.label{% endtrans %}: {{ entity.id }} ({{ type_label(entity) }})</p>
|
||||||
|
|
||||||
|
{% if entity.fullPath is defined %}
|
||||||
|
{{ helper.breadcrumb_entity_link(entity)}}
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% if createUrl %}
|
{% if createUrl %}
|
||||||
<div class="alert alert-info mb-2">
|
<div class="alert alert-info mb-2">
|
||||||
<h4 class="alert-heading mb-0">{% trans %}label_scanner.part_can_be_created{% endtrans %}</h4>
|
<h4 class="alert-heading mb-0">{% trans %}label_scanner.part_can_be_created{% endtrans %}</h4>
|
||||||
|
|
|
||||||
|
|
@ -9521,7 +9521,7 @@ Please note, that you can not impersonate a disabled user. If you try you will g
|
||||||
<unit id="kQnodbA" name="label_scanner.target_found">
|
<unit id="kQnodbA" name="label_scanner.target_found">
|
||||||
<segment>
|
<segment>
|
||||||
<source>label_scanner.target_found</source>
|
<source>label_scanner.target_found</source>
|
||||||
<target>Item Found</target>
|
<target>Item found in database</target>
|
||||||
</segment>
|
</segment>
|
||||||
</unit>
|
</unit>
|
||||||
<unit id="7Arfw2q" name="label_scanner.scan_result.title">
|
<unit id="7Arfw2q" name="label_scanner.scan_result.title">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue