{% extends "base.html" %}
{% load i18n %}
{% block headers %}{% endblock headers %}
{% block submenu %}
<ul>
	<li><a href="{% url settings-index %}">{% trans "Domains" %}</a></li>
  	<li><a href="{% url accounts %}">{% trans "Accounts" %}</a></li>
  	<li><a href="">{% trans "Scanners" %}</a></li>
</ul>
{% endblock submenu %}
{% block title %}{% trans "Edit" %} {% ifequal addr.address_type 1  %}{% trans "Domain" %} {% else %}{% trans "Address" %}{% endifequal %}{% endblock title %}
{% block heading %}{% trans "Edit" %} {% ifequal addr.address_type 1  %}{% trans "Domain" %} {% else %}{% trans "Address" %}{% endifequal %}{% endblock heading %}
{% block content %}
<div class="Grid_heading">
    <div class="Bayes_heading">{% trans "Edit" %} {% ifequal addr.address_type 1  %}{% trans "Domain" %} {% else %}{% trans "Address" %}{% endifequal %}</div>
</div>
<form action="{% url edit-address address_id %}" method="post">
	{% for hidden in form.hidden_fields %}
		{{ hidden }}
	{% endfor %}
	<!-- <input type="hidden" name="user" value="{{ user_id }}" /> -->
	<input type="hidden" name="user" value="{{ addr.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="submit-button" type="submit" value="{% trans "Update" %}" />
        </div>
        <div class="form_error"></div>
    </div>
</form>
{% endblock content %}
