mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-06-28 16:25:44 +08:00
Polished email template and django admin for custom user
This commit is contained in:
parent
f6cbe1941e
commit
267e331be7
4 changed files with 65 additions and 2 deletions
26
stude/templates/email_activation/email_activation.html
Normal file
26
stude/templates/email_activation/email_activation.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
{% load i18n %}
|
||||
|
||||
{% block subject %}
|
||||
{% blocktrans %}Account activation on {{ site_name }}{% endblocktrans %}
|
||||
{% endblock subject %}
|
||||
|
||||
{% block text_body %}
|
||||
{% blocktrans %}You're receiving this email because you need to finish activation process on {{ site_name }}.{% endblocktrans %}
|
||||
|
||||
{% trans "Please open the following link to activate your account in-app:" %}
|
||||
{{ domain }}://{{ url|safe }}
|
||||
|
||||
{% trans "Thanks you for using StudE!" %}
|
||||
|
||||
{% blocktrans %}The {{ site_name }} team{% endblocktrans %}
|
||||
{% endblock text_body %}
|
||||
|
||||
{% block html_body %}
|
||||
<p>{% blocktrans %}You're receiving this email because you need to finish activation process on {{ site_name }}.{% endblocktrans %}</p>
|
||||
|
||||
<p>{% trans "Please go to the following page to activate your account in-app:" %}</p>
|
||||
<p><a href="{{ domain }}://{{ url|safe }}">{{ domain }}://--/{{ url|safe }}</a></p>
|
||||
|
||||
<p>{% blocktrans %}Many thnaks from the {{ site_name }} team{% endblocktrans %}</p>
|
||||
|
||||
{% endblock html_body %}
|
Loading…
Add table
Add a link
Reference in a new issue