src/StartPlatz/Bundle/AlphaBundle/Resources/views/Default/list.rheinland-pitch.modal.html.twig line 1

Open in your IDE?
  1. <div class="modal-content connectCard rounded shadow p-0 border-0">
  2.     <div class="d-flex modal-title rounded-top text-white connectCardTop">
  3.         <h5 class="col align-self-start">{{ title }}</h5>
  4.         <button type="button" class="close align-self-end" data-dismiss="modal" aria-label="Close">
  5.             <span aria-hidden="true">&times;</span>
  6.         </button>
  7.     </div>
  8.     <div class="modal-body">
  9.         {% if targetPath is not defined %}
  10.             {% set targetPath = 'allmeda_startups_home' %}
  11.         {% endif %}
  12.         {% if aggregates1 %}
  13.             <h4>{{ group1 }}</h4>
  14.             {% include "@StartPlatzAlphaBundle/Connect/_aggregates.filters.html.twig" with
  15.                 {
  16.                     'group': group1,
  17.                     'aggregates': aggregates1,
  18.                     'sort':'pitchDate:DESC'
  19.                 }
  20.             %}
  21.         {% endif %}
  22.         {% if aggregates2 %}
  23.             <h4>{{ group2 }}</h4>
  24.             {% include "@StartPlatzAlphaBundle/Connect/_aggregates.filters.html.twig" with
  25.                 {
  26.                 'group': group2,
  27.                 'aggregates': aggregates2,
  28.                 'sort': 'pitchDate:DESC'
  29.                 }
  30.             %}
  31.         {% endif %}
  32.         {% if aggregatesBatches %}
  33.             {% if aggregates1 or aggregates2 %}
  34.             <hr>
  35.                         {% endif %}
  36.             Editions:
  37.             {% for aggregate in aggregatesBatches %}
  38.                 {% set isActive = aggregate.batchNumber in  templateVars.criteria %}
  39.                 <a class="btn btn-sm btn-outline-dark border-0 mr-1 mb-1 {% if isActive %} btnPrimary {% else %} btnSecondary {% endif %}"
  40.                    href="{{ path( targetPath ,{filter: 'batchNumber' ~ ':' ~ aggregate.batchNumber, 'sort':'pitchDate:DESC' } + templateVars ) }}"
  41.                    role="button"
  42.                 >{{ aggregate.batchNumber }} <span class="badge badge-light">{{ aggregate.number }}</span></a>
  43.             {% endfor %}
  44.         {% endif %}
  45.     </div>
  46. </div>