Skip to content

Commit

Permalink
Merge pull request #349 from MTES-MCT/hotfix/suivi-modals
Browse files Browse the repository at this point in the history
[Suivi usager] Correction de l'affichage des modales
  • Loading branch information
hmeneuvrier authored Aug 22, 2023
2 parents eac28a1 + 1ec16a1 commit 6f62dc3
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions templates/front_suivi_usager/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@

{% block body %}

{% if signalement.closedAt is not defined %}
{% include "front_suivi_usager/modal-empty-estimations.html.twig" %}
{% for intervention in interventions_to_answer %}
{% include "front_suivi_usager/modal-choice-estimation.html.twig" %}
{% endfor %}
{% if intervention_accepted_by_usager %}
{% include "front_suivi_usager/modal-estimation-accepted.html.twig" %}
{% endif %}
{% if not signalement.closedAt %}
{% include "front_suivi_usager/modal-empty-estimations.html.twig" %}
{% for intervention in interventions_to_answer %}
{% include "front_suivi_usager/modal-choice-estimation.html.twig" %}
{% endfor %}
{% if intervention_accepted_by_usager %}
{% include "front_suivi_usager/modal-estimation-accepted.html.twig" %}
{% endif %}

{% if signalement.autotraitement and signalement.reminderAutotraitementAt and not signalement.closedAt %}
{% include "front_suivi_usager/modal-probleme-resolu.html.twig" %}
{% endif %}
{% if not signalement.autotraitement and intervention_accepted_by_usager and intervention_accepted_by_usager.reminderResolvedByEntrepriseAt %}
{% include "front_suivi_usager/modal-probleme-resolu-pro.html.twig" %}
{% endif %}
{% if signalement.autotraitement and signalement.reminderAutotraitementAt %}
{% include "front_suivi_usager/modal-probleme-resolu.html.twig" %}
{% endif %}
{% if not signalement.autotraitement and intervention_accepted_by_usager and intervention_accepted_by_usager.reminderResolvedByEntrepriseAt %}
{% include "front_suivi_usager/modal-probleme-resolu-pro.html.twig" %}
{% endif %}

{% include "front_suivi_usager/modal-toujours-punaises.html.twig" %}
{% include "front_suivi_usager/modal-toujours-punaises-pro.html.twig" %}
{% include "front_suivi_usager/modal-close-signalement.html.twig" %}
{% include "front_suivi_usager/modal-toujours-punaises.html.twig" %}
{% include "front_suivi_usager/modal-toujours-punaises-pro.html.twig" %}
{% include "front_suivi_usager/modal-close-signalement.html.twig" %}
{% endif %}

<div class="suivi-usager fr-container fr-my-3v">
Expand Down

0 comments on commit 6f62dc3

Please sign in to comment.