You need to sign in or sign up before continuing.
show_rubrique.html.twig 866 Bytes
Newer Older
Julien Jorry committed
1 2 3 4 5 6 7 8 9 10 11 12
{% extends '@kohinos/common/layout.html.twig' %}

{% block content %}
<div class='container newslist mt-2'>
	{% include '@kohinos/block/breadcrumb.html.twig' with {'label': rubrique.name, 'label2': 'Rubriques', 'url2': path('rubriques_prestataire') } %}
  	<h1 class='text-primary'>
	  	{% if rubrique.media is not null %}
			<span style='width:100px;'>{% thumbnail rubrique.media, 'small' %}</span>
		{% endif %} {{rubrique.name}}
	</h1>
  	<div class="my-3 p-3 bg-white rounded box-shadow">
		<p>{{rubrique.content|raw}}</p>
13 14 15 16 17
		{% if tav_env == 1 %}
			<h3>{{ 'Points de vente'|trans }} : </h3>
		{% else %}
			<h3>{{ 'Prestataires'|trans }} : </h3>
		{% endif %}
Julien Jorry committed
18 19 20 21 22 23 24 25
		{% for presta in prestataires %}
			<div class='my-2'>
				{% include '@kohinos/presta/onepresta.html.twig' with { 'withrubrique': false} %}
			</div>
	    {% endfor %}
	</div>
</div>
{% endblock %}