Commit 9d4824e6 by Julien Jorry

Update show groupe template + fix liste presta by groupe

parent cc5d55de
...@@ -22,6 +22,15 @@ ...@@ -22,6 +22,15 @@
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}
{% if groupe.prestataires|length > 0 %}
<div class="card-header"><h2>{{ groupe.prestataires|length }} {{'Prestataires'|trans}} :</h2></div>
<ul class="list-group list-group-flush">
{% for presta in groupe.prestataires %}
<li class="list-group-item">
<a href="{{ path('show_prestataire', {'slug': presta.slug}) }}">{{ presta.raison }}</a>
</li>
{% endfor %}
{% endif %}
</div> </div>
</div> </div>
</div> </div>
......
...@@ -2,13 +2,17 @@ ...@@ -2,13 +2,17 @@
{% block content %} {% block content %}
<div class='container prestalist mt-2'> <div class='container prestalist mt-2'>
{% include '@kohinos/block/breadcrumb.html.twig' with {'label' : type} %} {% include '@kohinos/block/breadcrumb.html.twig' with {'label' : type, 'label2': 'Prestataires', 'url2': path('liste_prestataire', {'order': 'groupelocal'}) } %}
<div class="d-flex justify-content-center"> {% if type == 'Prestataires' %}
<div class="btn-group text-center mb-2" role="group" aria-label="Basic example"> <div class="d-flex justify-content-center">
<a href='#' type="button" class="btn btn-primary">Par nom</a> <div class="btn-group text-center mb-2" role="group" aria-label="Basic example">
<a href='{{ path('liste_prestataire', {'order': 'groupelocal'}) }}' type="button" class="btn btn-secondary">Par groupe local</a> <a href='#' type="button" class="btn btn-primary">Par nom</a>
<a href='{{ path('liste_prestataire', {'order': 'groupelocal'}) }}' type="button" class="btn btn-secondary">Par groupe local</a>
</div>
</div> </div>
</div> {% else %}
<h1 class='text-primary mb-4'>{{ type }}</h1>
{% endif %}
<div class="row"> <div class="row">
{% for presta in prestas %} {% for presta in prestas %}
<div class="col-12 col-md-6 mb-2"> <div class="col-12 col-md-6 mb-2">
......
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