Commit 783caa91 authored by ornanovitch's avatar ornanovitch 🐃

liste théâtres

parent 44944ae7
......@@ -9,23 +9,30 @@
{% for theater in theaters|sort((a, b) => a.city <=> b.city) %}
{% if city != theater.city %}
<div class="card bg-dark border-y border-light">
<a class="h4 card-header collapsed text-light" type="button" data-toggle="collapse" data-target="#{{ theater.city }}" aria-expanded="true" aria-controls="{{ theater.city }}">
<div id="card-{{ theater.city }}">
<a class="h4 card-header collapsed text-light"
type="button"
data-toggle="collapse"
data-target="#{{ theater.city | replace({' ': '_', '\'': '-'}) }}"
aria-expanded="true" aria-controls="{{ theater.city | replace({' ': '_', '\'': '-'}) }}">
<div id="card-{{ theater.city | replace({' ': '_', '\'': '-'}) }}">
<i class="fas fa-chevron-down"></i>
{{ theater.city | upper }}
</div>
</a>
<div id="{{ theater.city }}" class="collapse" aria-labelledby="{{ theater.city }}" data-parent="#accordionTheatersBalises">
<div id="{{ theater.city | replace({' ': '_', '\'': '-'}) }}"
class="collapse"
aria-labelledby="{{ theater.city | replace({' ': '_', '\'': '-'}) }}"
data-parent="#accordionTheatersBalises">
{% endif %}
<div class="card-body bg-light">
<div class="d-flex align-items-center">
<a class="h5 p-2 text-dark flex-grow-1 font-weight-bold" href="{{ path('theater_show_visitors' ,{'id': theater.id}) }}"> {{ theater.name }}</a>
<a class="p-2 text-dark" href="{{ path('theater_show_visitors' ,{'id': theater.id}) }} "><i class="fas fa-map-marked-alt fa-2x"></i></a>
{# <a class="p-2 text-dark" href="{{ path('theater_show_visitors' ,{'id': theater.id}) }} "><i class="fas fa-map-marked-alt fa-2x"></i></a> #}
<a class="p-2 text-dark" href="{{ theater.website }}"><i class="fas fa-external-link-alt fa-2x"></i></a>
</div>
</div>
{% if city != "" %}
</div>
{% if city != "" %}
</div>
{% endif %}
{% set city = theater.city %}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment