{% extends "base.html" %}
{% load i18n %}
{% block headers %}{% endblock headers %}
{% block submenu %}
<ul>
{% if is_domain %}
<li><a href="{% url settings-index %}">{% trans "Domains" %}</a></li>
{% else %}
<li><a href="{% url accounts %}">{% trans "Accounts" %}</a></li>	
{% endif %}
</ul>
{% endblock submenu %}
{% block title %}{% if is_domain %}{% trans "Domains :: Add Domain" %}{% else %}{% trans "Accounts :: Add Address" %}{% endif %}{% endblock title %}
{% block heading %}{% if is_domain %}{% trans "Domains :: Add Domain" %}{% else %}{% trans "Accounts :: Add Address" %}{% endif %}{% endblock heading %}
{% block content %}
<div class="Grid_heading">
    <div class="Bayes_heading">{% if is_domain %}{% trans "Add Domain" %}{% else %}{% trans "Add Address" %}{% endif %}</div>
</div>
<form action="{% url add-address user_id %}" method="post">
	{% for hidden in form.hidden_fields %}
		{{ hidden }}
	{% endfor %}
	<input type="hidden" name="user" value="{{ user_id }}" />
    {% for field in form.visible_fields %}
		{% ifnotequal field.label 'User'  %}
			<div class="LightBlue_div">
				<div class="form_label">{{ field.label }}</div>
				<div class="form_value">{{ field }}</div>
				<div class="form_error">{{ field.errors }}</div>
	        </div>
		{% endifnotequal %}
    {% endfor %}
    <div class="LightBlue_div">
        <div class="form_label">&nbsp;</div>
        <div class="form_value">
            <input id="cancel-button" type="reset" value="{% trans "Reset" %}" />&nbsp;
            <input id="submit-button" type="submit" value="{% trans "Add" %}" />
        </div>
        <div class="form_error"></div>
    </div>
</form>
{% endblock content %}
