{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}

{% block form_id %}update_subnet_form{% endblock %}
{% block form_action %}{% url horizon:syspanel:networks:editsubnet network_id subnet_id %}{% endblock %}

{% block modal-header %}{% trans "Edit Subnet" %}{% endblock %}

{% block modal-body %}
<div class="left">
    <dl>
      <dt>{% trans "ID" %}</dt>
      <dd>{{ subnet_id }}</dd>
      <dt>{% trans  "Network Address" %}</dt>
      <dd>{{ cidr }}</dd>
      <dt>{% trans  "IP version" %}</dt>
      <dd>{{ ip_version }}</dd>
    </dl>
    <hr>
    <fieldset>
    {% include "horizon/common/_form_fields.html" %}
    </fieldset>
</div>
<div class="right">
    <h3>{% trans "Description:" %}</h3>
    <p>{% trans "You may update the editable properties of your subnet here." %}</p>
</div>
{% endblock %}

{% block modal-footer %}
  <input class="btn btn-primary pull-right" type="submit" value="{% trans "Save Changes" %}" />
  <a href="{% url horizon:syspanel:networks:detail network_id %}" class="btn secondary cancel close">{% trans "Cancel" %}</a>
{% endblock %}
