templates/Event/Partials/part_event_status.html.twig line 1

Open in your IDE?
  1. {% if eventStatus.form %}
  2.     {% form_theme eventStatus.value with 'Event/Partials/View/_formThemeView.html.twig' %}
  3. {% endif %}
  4. {% if eventStatus.form %}
  5.     {{ form_start(eventStatus.value) }}
  6.     {{ form_errors(eventStatus.value) }}
  7.     {% if label is defined %}
  8.         {{ form_row(eventStatus.value.posts, {id: type~'-'~event.id~'-'~column | upper, label: label }) }}
  9.     {% else %}
  10.         {{ form_row(eventStatus.value.posts, {id: type~'-'~event.id~'-'~column | upper}) }}
  11.     {% endif %}
  12.     {{ form_rest(eventStatus.value) }}
  13.     {{ form_end(eventStatus.value) }}
  14. {% elseif eventStatus.choices %}
  15.     <div class="custom-dropdown">
  16.         <div class="custom-dropdown__label">
  17.             {% if label is defined %}
  18.                 <span class="text">
  19.                     {{ label }}
  20.                 </span>
  21.             {% endif %}
  22.             <span class="arrow">
  23.                 <i class="icon icon-chevron-down"></i>
  24.             </span>
  25.             <span class="counter {% if eventStatus.choices|length > 0 %}active{% endif %}">
  26.                 {% if eventStatus.choices|length > 0 %}
  27.                     {{eventStatus.choices|length}}
  28.                 {% endif %}
  29.             </span>
  30.         </div>
  31.         <div class="custom-dropdown__choices">
  32.             <div class="{{ class }}">
  33.                 {% for choice in eventStatus.choices %}
  34.                     <div class="custom-dropdown__choice">
  35.                         <span class="text">{{ choice }}</span>
  36.                     </div>
  37.                 {% endfor %}
  38.             </div>
  39.         </div>
  40.     </div>
  41. {% endif %}