PHRAS-2875 add Collection on caption tooltip

This commit is contained in:
Harrys Ravalomanana
2020-01-22 16:04:36 +04:00
parent 482583f891
commit e06c4d8eca
4 changed files with 12 additions and 7 deletions

View File

@@ -1,6 +1,11 @@
{% extends 'prod/Tooltip/Tooltip.html.twig' %}
{% set title %}{{ 'Caption' | trans }}{% endset %}
{% set title %}{{ 'Caption' | trans }} &nbsp;<span class="collection-block" style="float: right"> {% set collectionLogo = collection_logo(record.baseId) %}
{% if collectionLogo is empty %}
{{ record.collectionName }}
{% else %}
{{ collectionLogo|raw }}
{% endif %}</span> {% endset %}
{% set width = 400 %}
{% set maxwidth = 700 %}

View File

@@ -112,7 +112,7 @@
{% endfor %}
</div>
<div id="all_baskets-block" class="all_baskets-block">
{% for basket in content.get(constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::BASKETS')) %}
{% for basket in content.get(constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::BASKETS')) | sort | reverse %}
<div tooltipsrc="{{ path('prod_tooltip_basket', { 'basket' : basket.getId() }) }}"
id="SSTT_{{basket.getId()}}"
class="basketTips ui-accordion-header ui-state-default