mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-09-10 08:13:12 +00:00
Fix confirm email template
This commit is contained in:
parent
c41c723b0c
commit
dbefd3a0d7
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue