1 {% extends "account/base.html" %}
3 {% load ajaxable_tags %}
5 {% block titleextra %}{% trans "Account" %}{% endblock %}
8 <h1>{% trans "E-mail Addresses" %}</h1>
10 {% if user.emailaddress_set.all %}
11 <p class="normal-text">{% trans 'The following e-mail addresses are associated to your account:' %}</p>
13 <form action="{% url account_email %}" class="cuteform" method="post">
15 {% for emailaddress in user.emailaddress_set.all %}
16 <label for="email_radio_{{forloop.counter}}" class="{% if emailaddress.primary %}primary_email{%endif%}">
17 <input id="email_radio_{{forloop.counter}}" type="radio" name="email" {% if emailaddress.primary %}checked="checked"{%endif %} value="{{emailaddress.email}}"/>
19 {{ emailaddress.email }}
20 {% if emailaddress.verified %}
21 <span class="verified">{% trans "Verified" %}</span>
23 <span class="unverified">{% trans "Unverified" %}</span>
25 {% if emailaddress.primary %}<span class="primary">{% trans "Primary" %}</span>{% endif %}
29 <div style="margin-top:1em;">
30 <button class="secondaryAction" type="submit" name="action_primary" >{% trans 'Make Primary' %}</button>
31 <button class="secondaryAction" type="submit" name="action_send" >{% trans 'Re-send Verification' %}</button>
32 <button class="primaryAction" type="submit" name="action_remove" >{% trans 'Remove' %}</button>
37 <p class="normal-text"><strong>{% trans 'Warning:'%}</strong> {% trans "You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc." %}</p>
41 <h1>{% trans "Add E-mail Address" %}</h1>
43 <form method="post" action="" class="cuteform hidelabels">
46 {{ add_email_form|placeholdized_ul }}
47 <li><button name="action_add" type="submit">{% trans "Add E-mail" %}</button></li>
55 <script type="text/javascript">
57 $("button[name='action_remove']").click(function(){
58 if (confirm("{% trans 'Do you really want to remove the selected e-mail address?' %}")) {