Polished email template and django admin for custom user

This commit is contained in:
Keannu Christian Bernasol 2023-07-04 19:22:21 +08:00
parent f6cbe1941e
commit 267e331be7
4 changed files with 65 additions and 2 deletions

View 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 %}