Adds email template layout and formatting

This commit is contained in:
Mouse Reeve
2021-03-21 11:43:14 -07:00
parent 33b5639af0
commit d8a20175b6
15 changed files with 152 additions and 20 deletions

View File

@ -1,2 +1,15 @@
{% extends 'email/html_layout.html' %}
{% load i18n %}
{% blocktrans %}Your password reset link is: {{ reset_link }}{% endblocktrans %}
{% block content %}
<p>
{% blocktrans %}You requested to reset your {{ site_name }} password. Click the link below to set a new password and log in to your account.{% endblocktrans %}
</p>
{% trans "Reset Password" as text %}
{% include 'email/snippets/action.html' with path=reset_link text=text %}
<p>
{% trans "If you didn't request to reset your password, you can ignore this email." %}
</p>
{% endblock %}

View File

@ -1,2 +1,2 @@
{% load i18n %}
{% blocktrans %}Reset your password on {{ site_name }}{% endblocktrans %}
{% blocktrans %}Reset your {{ site_name }} password{% endblocktrans %}

View File

@ -1,2 +1,9 @@
{% extends 'email/text_layout.html' %}
{% load i18n %}
{% blocktrans %}Your password reset link is: {{ reset_link }}{% endblocktrans %}
{% block content %}
{% blocktrans %}You requested to reset your {{ site_name }} password. Click the link below to set a new password and log in to your account.{% endblocktrans %}
{{ reset_link }}
{% trans "If you didn't request to reset your password, you can ignore this email." %}
{% endblock %}