summaryrefslogtreecommitdiffstats
path: root/templates/patchwork/user-link.html
blob: 10c8ec275b6628a1c3e9c0d454e6446e7cbc61d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 %}