Show preview pictures as carousel on part info page.

This commit is contained in:
Jan Böhmer 2019-10-03 18:03:56 +02:00
parent 07dcbc0464
commit 2d4def2836
5 changed files with 96 additions and 14 deletions

View file

@ -1,14 +1,10 @@
{% import "helper.twig" as helper %}
<div class="row">
<div class="col-md-3">
{% if part.masterPictureAttachment and part.masterPictureAttachment.picture %}
<img src="{{ part.masterPictureAttachment | 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 class="col-md-3 col-lg-4">
{% include "Parts/info/_picture.html.twig" %}
</div>
<div class="col-md-9">
<div class="col-md-9 col-lg-8">
<h5 class="text-muted pt-2" title="{% trans %}manufacturer.label{% endtrans %}">
{% if part.manufacturer %}
{% if part.manufacturer.id is not null %}