{% import 'common/thumbnail.html.twig' as thumbnail %} {% extends 'prod/Tooltip/Tooltip.html.twig' %} {% set title %} {{ basket.getName() }} {% endset %} {% set width = 500 %} {% set maxwidth = null %} {% block content %}
{% if basket.isVoteBasket() %} {% set dateExpired = app['date-formatter'].getPrettyString(basket.getVoteExpires()) %} {% if basket.getVoteExpires() < date() %} {{ 'workzone:feedback:expiration-closed' | trans }} : {% else %} {{ 'workzone:feedback:expiration-open' | trans }} : {% endif %} {{ dateExpired }} {% endif %}
{{ basket.getDescription()|nl2br }}
{% set nb_records = basket.getElements()|length %} {% set date = app['date-formatter'].getPrettyString(basket.getUpdated()) %}
{% trans with {'%nb_records%' : nb_records} %}%nb_records% records{% endtrans %} - {{ 'prod:workzone:basket:creation-date' | trans }} : {{ date }}

{% for element in basket.getElements() %} {% if loop.index <= 10 %}
{{ thumbnail.format(element.getRecord(app).get_thumbnail(), 80, 80 , '', false, false) }}
{% endif %} {% endfor %}
{% endblock %}