Skip to content

Commit

Permalink
feat: faciliter l'ajout d'utilisateur bis #457
Browse files Browse the repository at this point in the history
  • Loading branch information
ocruze committed Aug 22, 2024
1 parent 7814be7 commit cdd2b24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions templates/Mailer/join_community.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
{% if message is not empty %}
<strong>{{ 'join_community.email_support.message'|trans }}</strong><br>
{{ message|e }}
{% else %}
{{ 'join_community.email_support.no_message'|trans }}
{% endif %}
</div>

{% set action_url = url('cartesgouvfr_app') ~ 'communaute/' ~ community._id ~ '/membres?userId=' ~ app.user.id %}
<p>{{ 'join_community.email_support.call_to_action'|trans({'%name%': community.name, '%href%': action_url})|raw }}</p>
</div>
{% endblock %}
1 change: 1 addition & 0 deletions translations/cartesgouvfr.fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ join_community:
email_support:
heading: 'Un utilisateur demande à rejoindre "%name%" (id=%id%)'
message: "Message :"
call_to_action: En tant que superviseur de "%name%", vous pouvez accepter ou rejeter sa demande d'adhésion en allant sur la <a href='%href%'>page suivante</a>.
email_acknowledgement:
heading: 'Votre demande pour rejoindre "%name%" a été envoyée à son adresse email de contact.'
date: "Date d'envoi"
Expand Down

0 comments on commit cdd2b24

Please sign in to comment.