{% if user.emailaddress_set.all %}
{% include 'account/components/headers.html' with header="Emails" subheader="Manage your emails" %}
{% csrf_token %}
{% include 'account/components/email_list.html' with header="Emails" subheader="Manage your emails" %}
{% else %}

Warning: You have no email address associated with your accound. You need to add an email address in order to recieve notifications or change your password.

{% endif %} {% if can_add_email %}
{% csrf_token %}
{% include 'account/components/email.html' with form=form label="Email" %}
{% include 'account/components/submit_button.html' with action="Add email" name="action_add" %}
{% endif %}