<div class="modal-content connectCard rounded shadow p-0 border-0">
<div class="d-flex modal-title rounded-top text-white connectCardTop">
<h5 class="col align-self-start">{{ title }}</h5>
<button type="button" class="close align-self-end" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
{% if targetPath is not defined %}
{% set targetPath = 'allmeda_startups_home' %}
{% endif %}
{% if aggregates1 %}
<h4>{{ group1 }}</h4>
{% include "@StartPlatzAlphaBundle/Connect/_aggregates.filters.html.twig" with
{
'group': group1,
'aggregates': aggregates1,
'sort':'pitchDate:DESC'
}
%}
{% endif %}
{% if aggregates2 %}
<h4>{{ group2 }}</h4>
{% include "@StartPlatzAlphaBundle/Connect/_aggregates.filters.html.twig" with
{
'group': group2,
'aggregates': aggregates2,
'sort': 'pitchDate:DESC'
}
%}
{% endif %}
{% if aggregatesBatches %}
{% if aggregates1 or aggregates2 %}
<hr>
{% endif %}
Editions:
{% for aggregate in aggregatesBatches %}
{% set isActive = aggregate.batchNumber in templateVars.criteria %}
<a class="btn btn-sm btn-outline-dark border-0 mr-1 mb-1 {% if isActive %} btnPrimary {% else %} btnSecondary {% endif %}"
href="{{ path( targetPath ,{filter: 'batchNumber' ~ ':' ~ aggregate.batchNumber, 'sort':'pitchDate:DESC' } + templateVars ) }}"
role="button"
>{{ aggregate.batchNumber }} <span class="badge badge-light">{{ aggregate.number }}</span></a>
{% endfor %}
{% endif %}
</div>
</div>