diff --git a/networks/templates/modify_fixed_address.html b/networks/templates/modify_ipv4_fixed_address.html similarity index 85% rename from networks/templates/modify_fixed_address.html rename to networks/templates/modify_ipv4_fixed_address.html index fd1c938..7c1addb 100644 --- a/networks/templates/modify_fixed_address.html +++ b/networks/templates/modify_ipv4_fixed_address.html @@ -1,16 +1,16 @@ {% load i18n %} {% if request.user.is_superuser %} - + - diff --git a/networks/templates/modify_ipv6_fixed_address.html b/networks/templates/modify_ipv6_fixed_address.html new file mode 100644 index 0000000..fcc7eff --- /dev/null +++ b/networks/templates/modify_ipv6_fixed_address.html @@ -0,0 +1,53 @@ +{% load i18n %} +{% if request.user.is_superuser %} + + + + + + +{% endif %} \ No newline at end of file diff --git a/networks/templates/network.html b/networks/templates/network.html index 46c79ab..c5d8cd5 100644 --- a/networks/templates/network.html +++ b/networks/templates/network.html @@ -68,6 +68,7 @@

+
@@ -93,31 +94,32 @@ -
+ +
-

{% trans "IPv4 Forwarding:" %}

-

{% trans "Network:" %}

-

{% trans "DHCP:" %}

+

{% trans "IPv4 Forwarding" %}:

+

{% trans "Network" %}:

{% if ipv4_dhcp_range_start and ipv4_dhcp_range_end %} -

{% trans "Start:" %}

-

{% trans "End:" %}

+

{% trans "DHCP" %}:

+

{% trans "Start" %}:

+

{% trans "End" %}:

{% endif %}

- {% ifequal ipv4_forward.0 'nat' %} + {% ifequal net_forward.0 'nat' %} {% trans "NAT" %} {% endifequal %} - {% ifequal ipv4_forward.0 'route' %} + {% ifequal net_forward.0 'route' %} {% trans "ROUTE" %} {% endifequal %} - {% ifequal ipv4_forward.0 'bridge' %} + {% ifequal net_forward.0 'bridge' %} {% trans "BRIDGE" %} {% endifequal %} - {% if not ipv4_forward.0 %} + {% if not net_forward.0 %} {% trans "ISOLATE" %} {% endif %}

@@ -137,6 +139,7 @@ {% else %}

+
- {% ifequal ipv4_forward.0 'nat' %} + {% if ipv4_dhcp_range_start and ipv4_dhcp_range_end %} {% if state %} - {% include 'modify_fixed_address.html' %} + {% include 'modify_ipv4_fixed_address.html' %} {% endif %}
- +
- {% endifequal %} - {% if fixed_address %} + {% endif %} + {% if ipv4_fixed_address %}
@@ -175,7 +178,7 @@
- +
@@ -185,14 +188,132 @@ - {% for fix in fixed_address %} + {% for fix4 in ipv4_fixed_address %} {% csrf_token %} - - - + + + + + + {% endfor %} + +
{% trans "MAC" %}
- + + + +
+
+
+
+
+
+ + {% endif %} + +
+ +
+
+
+

{% trans "IPv6 Forwarding" %}:

+

{% trans "Network" %}:

+ {% if ipv6_dhcp_range_start and ipv6_dhcp_range_end %} +

{% trans "DHCP" %}:

+

{% trans "Start" %}:

+

{% trans "End" %}:

+ {% endif %} +
+
+

+ {% if not net_forward.0 %} + {% trans "ISOLATE" %} + {% else %} + {% trans "ROUTE" %} + {% endif %} +

+

{{ ipv6_network }}

+

+ {% if ipv6_dhcp_range_start and ipv6_dhcp_range_end %} + {% trans "ON" %} + {% else %} + {% trans "OFF" %} + {% endif %} +

+ {% if ipv6_dhcp_range_start and ipv6_dhcp_range_end %} +
{% csrf_token %} + {% if state %} +

{{ ipv6_dhcp_range_start }}

+

{{ ipv6_dhcp_range_end }}

+ {% else %} +

+

+ +
+ +
+ {% endif %} +
+ {% endif %} +
+
+ {% if ipv6_dhcp_range_start and ipv6_dhcp_range_end %} + {% if state %} + {% include 'modify_ipv6_fixed_address.html' %} + {% endif %} +
+ +
+ {% endif %} + {% if ipv6_fixed_address %} +
+
+
+
+ +
+
+ +
+
+ +
+ + +
+ + + + + + + + + + + {% for fix6 in ipv6_fixed_address %} + + {% csrf_token %} + + + +
{% trans "ID" %}{% trans "Address" %}{% trans "Name" %}{% trans "Action" %}
+