small lint fixes
{% block edit_content %}
{% if user.emailaddress_set.all %}
- <p>{% trans 'The following email addresses are associated with your account:' %}</p>
+ <p>{% trans "The following email addresses are associated with your account:" %}</p>
<form action="{% url 'account_email' %}" class="email_list" method="post">
{% csrf_token %}
{% endfor %}
<div class="buttonHolder">
- <button class="secondaryAction" type="submit" name="action_primary" >{% trans 'Make Primary' %}</button>
- <button class="secondaryAction" type="submit" name="action_send" >{% trans 'Re-send Verification' %}</button>
- <button class="primaryAction" type="submit" name="action_remove" >{% trans 'Remove' %}</button>
+ <button class="secondaryAction" type="submit" name="action_primary" >{% trans "Make Primary" %}</button>
+ <button class="secondaryAction" type="submit" name="action_send" >{% trans "Re-send Verification" %}</button>
+ <button class="primaryAction" type="submit" name="action_remove" >{% trans "Remove" %}</button>
</div>
</fieldset>
{% else %}
- <p><strong>{% trans 'Warning:'%}</strong>{% trans "You currently do not have any email address set up. You should really add an email address so you can receive notifications, reset your password, etc." %}</p>
+ <p><strong>{% trans "Warning:" %}</strong>{% trans "You currently do not have any email address set up. You should really add an email address so you can receive notifications, reset your password, etc." %}</p>
{% endif %}
var primaryButton = document.querySelector("button[name=action_primary]");
var sendVerificationButton = document.querySelector("button[name=action_send");
- {% if user.emailaddress_set.all %}
+ {% if user.emailaddress_set.exists %}
{% for emailaddress in user.emailaddress_set.all %}
var email_{{ forloop.counter }} = document.querySelector("input[value='{{ emailaddress.email }}']")
if (email_{{ forloop.counter }}.checked == true) {
