8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-26 06:32:26 +00:00

Fix confirm email template

This commit is contained in:
Jean-Romain Garnier 2020-04-17 10:28:04 +00:00 committed by Gabriel Detraz
parent 7b4ec26d94
commit 1124801b7d
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<form class="form" method="post"> <form class="form" method="post">
{% csrf_token %} {% csrf_token %}
<h4>{% blocktrans %}Confirmation email{% endblocktrans %}</h4> <h4>{% blocktrans %}Confirmation email{% endblocktrans %}</h4>
<p>{% blocktrans %}Confirm the email{% endblocktrans %} <a href="mailto:{{ email }}">{{ email }}</a> {% blocktrans %}for user {{ firstname }} {{ lastname }}.{% endblocktrans %}.</p> <p>{% blocktrans %}Confirm the email{% endblocktrans %} <a href="mailto:{{ email }}">{{ email }}</a> {% blocktrans %}for user {{ firstname }} {{ lastname }}.{% endblocktrans %}</p>
{% trans "Confirm" as tr_confirm %} {% trans "Confirm" as tr_confirm %}
{% bootstrap_button tr_confirm button_type="submit" icon="ok" button_class="btn-success" %} {% bootstrap_button tr_confirm button_type="submit" icon="ok" button_class="btn-success" %}
</form> </form>

View file

@ -1067,7 +1067,7 @@ def process_email(request, req):
return redirect(reverse("index")) return redirect(reverse("index"))
return form( return form(
{"email": user.email, "firstname": user.firstname, "lastname": user.surname}, {"email": user.email, "firstname": user.name, "lastname": user.surname},
"users/confirm_email.html", "users/confirm_email.html",
request request
) )