]> git.ozlabs.org Git - patchwork/blob - templates/patchwork/user-link.html
Use django-registration infrastructure
[patchwork] / templates / patchwork / user-link.html
1 {% extends "base.html" %}
2
3 {% block title %}{{ user.username }}{% endblock %}
4 {% block heading %}link accounts for {{ user.username }}{% endblock %}
5
6
7 {% block body %}
8
9 {% if confirmation and not error %}
10 <p>A confirmation email has been sent to {{ confirmation.email }}. Click
11 on the link provided in the email to confirm that this address belongs to
12 you.</p>
13
14 {% else %}
15
16    {% if form.errors %}
17    <p>There was an error submitting your link request.</p>
18     {{ form.non_field_errors }}
19    {% endif %}
20    {% if error %}
21     <ul class="errorlist"><li>{{error}}</li></ul>
22    {% endif %}
23
24    <form action="{% url patchwork.views.user.link %}" method="post">
25     {{linkform.email.errors}}
26     Link an email address: {{ linkform.email }}
27    </form>
28
29 {% endif %}
30
31 {% endblock %}