diff --git a/templates/back/signalement/view/address-qualifications.html.twig b/templates/back/signalement/view/address-qualifications.html.twig index 3bfa10c5f..9216e2825 100755 --- a/templates/back/signalement/view/address-qualifications.html.twig +++ b/templates/back/signalement/view/address-qualifications.html.twig @@ -1,9 +1,11 @@
- {% include 'back/signalement/view/edit-modals/edit-address.html.twig' %} + {% if isNewFormEnabled and canEditSignalement %} + {% include 'back/signalement/view/edit-modals/edit-address.html.twig' %} + {% endif %}

Adresse du logement - {% if isNewFormEnabled %} + {% if isNewFormEnabled and canEditSignalement %} Modifier diff --git a/templates/back/signalement/view/information.html.twig b/templates/back/signalement/view/information.html.twig index 8f0487f84..1519fffcd 100644 --- a/templates/back/signalement/view/information.html.twig +++ b/templates/back/signalement/view/information.html.twig @@ -19,7 +19,7 @@
{% if signalement.isNotOccupant %} - {% if isNewFormEnabled %} + {% if isNewFormEnabled and canEditSignalement %} {% include 'back/signalement/view/edit-modals/edit-coordonnees-tiers.html.twig' %} {% endif %}
@@ -29,7 +29,7 @@

Coordonnées du tiers déclarant

- {% if isNewFormEnabled %} + {% if isNewFormEnabled and canEditSignalement %} Modifier {% endif %}
@@ -73,7 +73,7 @@ {% endif %}
- {% if isNewFormEnabled %} + {% if isNewFormEnabled and canEditSignalement %} {% include 'back/signalement/view/edit-modals/edit-coordonnees-foyer.html.twig' %} {% endif %}
@@ -82,7 +82,7 @@

Coordonnées du foyer

- {% if isNewFormEnabled %} + {% if isNewFormEnabled and canEditSignalement %} Modifier {% endif %}
@@ -129,7 +129,7 @@ {% if not signalement.profileDeclarant or (signalement.profileDeclarant is not same as enum('App\\Entity\\Enum\\ProfileDeclarant').BAILLEUR_OCCUPANT and signalement.profileDeclarant is not same as enum('App\\Entity\\Enum\\ProfileDeclarant').BAILLEUR) %}
- {% if isNewFormEnabled %} + {% if isNewFormEnabled and canEditSignalement %} {% include 'back/signalement/view/edit-modals/edit-coordonnees-bailleur.html.twig' %} {% endif %}
@@ -138,7 +138,7 @@

Informations sur le bailleur

- {% if isNewFormEnabled %} + {% if isNewFormEnabled and canEditSignalement %} Modifier {% endif %}
@@ -225,7 +225,7 @@ {% endif %}
- {% if isNewFormEnabled %} + {% if isNewFormEnabled and canEditSignalement %} {% include 'back/signalement/view/edit-modals/edit-informations-logement.html.twig' %} {% endif %}
@@ -234,7 +234,7 @@

Informations sur le logement

- {% if isNewFormEnabled %} + {% if isNewFormEnabled and canEditSignalement %} Modifier {% endif %}
@@ -360,7 +360,7 @@
- {% if isNewFormEnabled %} + {% if isNewFormEnabled and canEditSignalement %} {% include 'back/signalement/view/edit-modals/edit-composition-logement.html.twig' %} {% endif %}
@@ -369,7 +369,7 @@

Composition du logement

- {% if isNewFormEnabled %} + {% if isNewFormEnabled and canEditSignalement %} Modifier {% endif %}
@@ -548,7 +548,7 @@
- {% if isNewFormEnabled %} + {% if isNewFormEnabled and canEditSignalement %} {% include 'back/signalement/view/edit-modals/edit-situation-foyer.html.twig' %} {% endif %}
@@ -557,7 +557,7 @@

Situation du foyer

- {% if isNewFormEnabled %} + {% if isNewFormEnabled and canEditSignalement %} Modifier {% endif %}
@@ -684,7 +684,7 @@
- {% if isNewFormEnabled %} + {% if isNewFormEnabled and canEditSignalement %} {% include 'back/signalement/view/edit-modals/edit-procedure-demarches.html.twig' %} {% endif %}
@@ -693,7 +693,7 @@

Procédure et démarches

- {% if isNewFormEnabled %} + {% if isNewFormEnabled and canEditSignalement %} Modifier {% endif %}
diff --git a/templates/back/signalement/view/suivis.html.twig b/templates/back/signalement/view/suivis.html.twig index c816f3cb4..19163cfa2 100755 --- a/templates/back/signalement/view/suivis.html.twig +++ b/templates/back/signalement/view/suivis.html.twig @@ -5,23 +5,21 @@

Suivis

+ {% if + (is_granted('ROLE_ADMIN_PARTNER') or (isAffected and isAccepted)) + and signalement.statut is not same as constant('App\\Entity\\Signalement::STATUS_NEED_VALIDATION') + and signalement.statut is not same as constant('App\\Entity\\Signalement::STATUS_CLOSED') + and not isClosedForMe + %} + {% include '_partials/signalement/add_suivi.html.twig' %} + {% endif %}
- -{% if - (is_granted('ROLE_ADMIN_PARTNER') or (isAffected and isAccepted)) - and signalement.statut is not same as constant('App\\Entity\\Signalement::STATUS_NEED_VALIDATION') - and signalement.statut is not same as constant('App\\Entity\\Signalement::STATUS_CLOSED') - and not isClosedForMe - %} - {% include '_partials/signalement/add_suivi.html.twig' %} -{% endif %} - {% for suivi in signalement.suivis|reverse %}