{% if eventStatus.form %}
{% form_theme eventStatus.value with 'Event/Partials/View/_formThemeView.html.twig' %}
{% endif %}
{% if eventStatus.form %}
{{ form_start(eventStatus.value) }}
{{ form_errors(eventStatus.value) }}
{% if label is defined %}
{{ form_row(eventStatus.value.posts, {id: type~'-'~event.id~'-'~column | upper, label: label }) }}
{% else %}
{{ form_row(eventStatus.value.posts, {id: type~'-'~event.id~'-'~column | upper}) }}
{% endif %}
{{ form_rest(eventStatus.value) }}
{{ form_end(eventStatus.value) }}
{% elseif eventStatus.choices %}
<div class="custom-dropdown">
<div class="custom-dropdown__label">
{% if label is defined %}
<span class="text">
{{ label }}
</span>
{% endif %}
<span class="arrow">
<i class="icon icon-chevron-down"></i>
</span>
<span class="counter {% if eventStatus.choices|length > 0 %}active{% endif %}">
{% if eventStatus.choices|length > 0 %}
{{eventStatus.choices|length}}
{% endif %}
</span>
</div>
<div class="custom-dropdown__choices">
<div class="{{ class }}">
{% for choice in eventStatus.choices %}
<div class="custom-dropdown__choice">
<span class="text">{{ choice }}</span>
</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}