<div class="{#js-idea-add js-idea-tooltip #}idea-add idea-add-{{ id }}{% if id != 0 and (favourites[id] is defined or id in favourites) %} active{% endif %}"
data-idea-btn-id="add-to-idea-button"
data-action="{{ path('app_ideas_list', {id: id }) }}"
title="
{# @todo необходимо еще добавить подсказку для элементов, которые добавить в идеи нет возможности
{% if disabled %}
{{ 'idea_msg_disabled'|trans }}
{% endif %}
#}
{#{% if favourites[id] is defined %}
{{ 'idea_msg_added' | trans }}
{% else %}
{% if ideasCount == 1 %}
{{ 'idea_msg_normal' | trans }}
{% endif %}
{% if ideasCount > 1 %}
{{ 'idea_msg_normal_many' | trans | preg_replace('/%count%/', ideasCount) }}
{% endif %}
{% if ideasCount == 0 %}
{{ 'idea_msg_normal_zero' | trans }}
{% endif %}
{% endif %}#}
"
data-msg-added="{{ 'idea_msg_added' | trans }}"
role="add-to-project"
data-type-project="idea"
data-element-count="1"
{% if collectionId is defined %}
data-from-collection="{{ collectionId }}"
{% endif %}
{% if minArticlePrice is defined %}
data-min-price={{ minArticlePrice }}
{% endif %}
>
<i class="idea-added-to-project help-tooltip-fast-hide"
title="{{ 'collection_ideas_short' | trans({'%number%': te.valK(ideasCount)}) | raw | capitalize }}">
{% include '@Web/SVGIconsCode/lamp-idea-added.html.twig' %}
</i>
<i class="idea-not-added-to-project help-tooltip-fast-hide"
title="{{ 'collection_ideas_short' | trans({'%number%': te.valK(ideasCount)}) | raw | capitalize }}">
{% include '@Web/SVGIconsCode/lamp-idea-no-added.html.twig' %}
</i>
{% set thousandClass = '' %}
{% if ideasCount > 999 %}
{% set thousandClass = 'thousand' %}
{% endif %}
{#{% if import.isShowDebug and interior is defined %}
<span style="color: blue">{{ loop.index }}</span>|<span style="color: green">{{ interior.id }}</span>|
{% endif %}#}
<span class="val {{ hideClass }} {{ thousandClass }}" data-idea-sum>{{ te.valK(ideasCount) }}</span>
</div>