mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-02 17:25:05 +02:00
Fixed exceptions on part info page
This commit is contained in:
parent
1af7c37ad7
commit
fd6961e2f3
4 changed files with 125 additions and 525 deletions
|
@ -1,6 +1,10 @@
|
|||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<img src="{{ main_image }}" class="img-fluid img-thumbnail bg-light" alt="Part main image" height="300" width="300">
|
||||
{% if part.masterPictureAttachement %}
|
||||
<img src="{{ part.masterPictureAttachement | entityURL('file_view') }}" class="img-fluid img-thumbnail bg-light" alt="Part main image" height="300" width="300">
|
||||
{% else %}
|
||||
<img src="{{ asset('img/part_placeholder.svg') }}" class="img-fluid img-thumbnail bg-light" alt="Part main image" height="300" width="300">
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<h5 class="text-muted pt-2" title="{% trans %}manufacturer.label{% endtrans %}">{{ part.manufacturer.name ?? ""}}</h5>
|
||||
|
@ -15,13 +19,13 @@
|
|||
<i class="fas fa-tag fa-fw"></i>
|
||||
<span class="text-muted">{{ part.category.fullPath ?? "-"}}</span>
|
||||
</h6>
|
||||
<h6 class="" title="{% trans %}storelocation.label{% endtrans %}">
|
||||
{# <h6 class="" title="{% trans %}storelocation.label{% endtrans %}">
|
||||
<i class="fas fa-cube fa-fw"></i>
|
||||
<span class="text-muted">{{ part.storelocation.fullPath ?? "-"}}</span>
|
||||
</h6>
|
||||
</h6> #}
|
||||
<h6><i class="fas fa-shapes fa-fw"></i>
|
||||
<span class="text-muted">
|
||||
<span title="{% trans %}instock.label{% endtrans %}">{{ part.instock }}</span>
|
||||
<span class="text-muted"> {#
|
||||
<span title="{% trans %}instock.label{% endtrans %}">{{ part.instock }}</span> #}
|
||||
/
|
||||
<span title="{% trans %}mininstock.label{% endtrans %}">{{ part.mininstock }}</span>
|
||||
</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue