src/WebBundle/Resources/views/Common/idea-add-block.html.twig line 1

Open in your IDE?
  1. <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 %}"
  2.      data-idea-btn-id="add-to-idea-button"
  3.      data-action="{{ path('app_ideas_list', {id: id }) }}"
  4.      title="
  5.      {# @todo необходимо еще добавить подсказку для элементов, которые добавить в идеи нет возможности
  6.         {% if disabled %}
  7.             {{ 'idea_msg_disabled'|trans }}
  8.         {% endif %}
  9.      #}
  10.         {#{% if favourites[id] is defined %}
  11.             {{ 'idea_msg_added' | trans }}
  12.         {% else %}
  13.             {% if ideasCount == 1 %}
  14.                 {{ 'idea_msg_normal' | trans }}
  15.             {% endif %}
  16.             {% if ideasCount > 1 %}
  17.                 {{ 'idea_msg_normal_many' | trans | preg_replace('/%count%/', ideasCount) }}
  18.             {% endif %}
  19.             {% if ideasCount == 0 %}
  20.                 {{ 'idea_msg_normal_zero' | trans }}
  21.             {% endif %}
  22.         {% endif %}#}
  23.         "
  24.      data-msg-added="{{ 'idea_msg_added' | trans }}"
  25.      role="add-to-project"
  26.      data-type-project="idea"
  27.      data-element-count="1"
  28.      {% if collectionId is defined %}
  29.         data-from-collection="{{ collectionId }}"
  30.      {% endif %}
  31.      {% if minArticlePrice is defined %}
  32.         data-min-price={{ minArticlePrice }}
  33.      {% endif %}
  34. >
  35.     <i class="idea-added-to-project help-tooltip-fast-hide"
  36.         title="{{ 'collection_ideas_short' | trans({'%number%': te.valK(ideasCount)}) | raw | capitalize }}">
  37.         {% include '@Web/SVGIconsCode/lamp-idea-added.html.twig' %}
  38.     </i>
  39.     <i class="idea-not-added-to-project help-tooltip-fast-hide"
  40.         title="{{ 'collection_ideas_short' | trans({'%number%': te.valK(ideasCount)}) | raw | capitalize }}">
  41.         {% include '@Web/SVGIconsCode/lamp-idea-no-added.html.twig' %}
  42.     </i>
  43.     
  44.     {% set thousandClass = '' %}
  45.     {% if ideasCount > 999 %}
  46.         {% set thousandClass = 'thousand' %}
  47.     {% endif %}
  48.     {#{% if import.isShowDebug and interior is defined %}
  49.         <span style="color: blue">{{ loop.index }}</span>|<span style="color: green">{{ interior.id }}</span>|
  50.     {% endif %}#}
  51.     <span class="val {{ hideClass }} {{ thousandClass }}" data-idea-sum>{{ te.valK(ideasCount) }}</span>
  52. </div>