Commit b7da3197 by Damien Moulard

presta details: in tav env remove some elements

parent c9726d34
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<div class="card mb-2"> <div class="card mb-2">
<div class="card-header"> <div class="card-header">
<h1>{{ presta.raison }}</h1> <h1>{{ presta.raison }}</h1>
{% if tav_env == 0 %}
{% if presta.acceptemlc %} {% if presta.acceptemlc %}
<span class='fa-stack fa-lg' data-toggle='tooltip' data-placement='bottom' title="Accepte la monnaie électronique"> <span class='fa-stack fa-lg' data-toggle='tooltip' data-placement='bottom' title="Accepte la monnaie électronique">
<i class='fa fa-at fa-stack-1x'></i> <i class='fa fa-at fa-stack-1x'></i>
...@@ -19,9 +20,16 @@ ...@@ -19,9 +20,16 @@
<i class='fa fa-ban fa-stack-2x text-danger'></i> <i class='fa fa-ban fa-stack-2x text-danger'></i>
</span> </span>
{% endif %} {% endif %}
{% endif %}
{% if presta.rubriques|length > 0%} {% if presta.rubriques|length > 0%}
{% if tav_env == 1 %}
{% set presta_rubrique_class = 'mr-2' %}
{% else %}
{% set presta_rubrique_class = 'ml-2' %}
{% endif %}
{% for rubrique in presta.rubriques %} {% for rubrique in presta.rubriques %}
<a class='rubrique ml-2' href='{{ path('show_rubrique', {'slug': rubrique.slug}) }}'>{{ rubrique.name }}</a> <a class='rubrique {{ presta_rubrique_class }}' href='{{ path('show_rubrique', {'slug': rubrique.slug}) }}'>{{ rubrique.name }}</a>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{# @TODO : ajouter le lien d'édition uniquement quand l'utilisateur peut l'éditer (Voter?) #} {# @TODO : ajouter le lien d'édition uniquement quand l'utilisateur peut l'éditer (Voter?) #}
...@@ -38,10 +46,10 @@ ...@@ -38,10 +46,10 @@
{% if presta.statut != null %} {% if presta.statut != null %}
<h6 class="card-title text-muted mb-3">{{ presta.statut }}</h6> <h6 class="card-title text-muted mb-3">{{ presta.statut }}</h6>
{% endif %} {% endif %}
{% if presta.groupe != null %} {% if presta.groupe != null and tav_env == 0 %}
<h4 class="card-subtitle mb-3">{{'Groupe local'|trans}} : <a href='{{ path('show_groupe', {'slug': presta.groupe.slug}) }}'>{{ presta.groupe.__toString() }}</a></h4> <h4 class="card-subtitle mb-3">{{'Groupe local'|trans}} : <a href='{{ path('show_groupe', {'slug': presta.groupe.slug}) }}'>{{ presta.groupe.__toString() }}</a></h4>
{% endif %} {% endif %}
{% if presta.siret != null %} {% if presta.siret != null and tav_env == 0 %}
<h5 class="card-subtitle mb-3">{{'SIRET'|trans}} : {{ presta.siret }}</h5> <h5 class="card-subtitle mb-3">{{'SIRET'|trans}} : {{ presta.siret }}</h5>
{% endif %} {% endif %}
{% if app.user and presta_extra_data and presta.conventionnement != null and presta.conventionnement > 0 %} {% if app.user and presta_extra_data and presta.conventionnement != null and presta.conventionnement > 0 %}
......
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