diff options
Diffstat (limited to 'patchwork/templates/patchwork/user-link.html')
-rw-r--r-- | patchwork/templates/patchwork/user-link.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/patchwork/templates/patchwork/user-link.html b/patchwork/templates/patchwork/user-link.html new file mode 100644 index 0000000..e436c3a --- /dev/null +++ b/patchwork/templates/patchwork/user-link.html @@ -0,0 +1,32 @@ +{% extends "base.html" %} + +{% block title %}{{ user.username }}{% endblock %} +{% block heading %}link accounts for {{ user.username }}{% endblock %} + + +{% block body %} + +{% if confirmation and not error %} +<p>A confirmation email has been sent to {{ confirmation.email }}. Click +on the link provided in the email to confirm that this address belongs to +you.</p> + +{% else %} + + {% if form.errors %} + <p>There was an error submitting your link request.</p> + {{ form.non_field_errors }} + {% endif %} + {% if error %} + <ul class="errorlist"><li>{{error}}</li></ul> + {% endif %} + + <form action="{% url 'patchwork.views.user.link' %}" method="post"> + {% csrf_token %} + {{linkform.email.errors}} + Link an email address: {{ linkform.email }} + </form> + +{% endif %} + +{% endblock %} |