Skip to content

Commit

Permalink
Siae attach workflow: move contact support
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Nov 27, 2023
1 parent ca00ecb commit 841580c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
9 changes: 7 additions & 2 deletions lemarche/templates/dashboard/siae_search_adopt_confirm.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,15 @@ <h2 class="h1 mb-3 mb-lg-5"><strong>Dernière vérification</strong></h2>

{% if siae.users.count %}
<div class="alert alert-warning" role="alert">
<p class="mb-0">
<i>{{ siae.users.first.full_name }}</i> est déjà rattaché à cette structure sur le marché.<br />
<p>
<i>{{ siae.users.first.full_name }}</i> est déjà rattaché à cette structure sur le marché.
</p>
<p>
En cliquant sur <strong>Demander le rattachement</strong>, un e-mail sera envoyé à <i>{{ siae.users.first.full_name }}</i> ({{ siae.users.first.email_anonymized }}) afin qu'il ou elle valide votre rattachement.
</p>
<p class="mb-0">
Cet utilisateur ne fait plus partie de la structure ? <a href="{% url 'pages:contact' %}?siret={{ siae.siret }}">Contactez le support</a>
</p>
</div>
{% endif %}

Expand Down
5 changes: 1 addition & 4 deletions lemarche/www/dashboard_siaes/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,7 @@ def form_valid(self, form):
logs=[{"action": "create", "timestamp": timezone.now().isoformat()}],
)
send_siae_user_request_email_to_assignee(siae_user_request)
success_message = (
f"La demande a été envoyée à {self.object.users.first().full_name}.<br />"
f"<i>Cet utilisateur ne fait plus partie de la structure ? <a href=\"{reverse_lazy('pages:contact')}?siret={self.object.siret}\">Contactez le support</a></i>" # noqa
)
success_message = f"La demande a été envoyée à {self.object.users.first().full_name}."
messages.add_message(self.request, messages.SUCCESS, success_message)
return HttpResponseRedirect(reverse_lazy("dashboard:home"))

Expand Down

0 comments on commit 841580c

Please sign in to comment.