Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Structures] Rattachement : déplacer la mention de contacter le support #992

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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