diff --git a/templates/network.html b/templates/network.html new file mode 100644 index 0000000..33799ec --- /dev/null +++ b/templates/network.html @@ -0,0 +1,187 @@ +{% extends "base.html" %} +{% load i18n %} +{% block title %}{% trans "Networks" %} - {{ compute.name }}{% endblock %} +{% block content %} + +
+
+

{% trans "Network:" %} {{ pool }}

+ +
+
+ + + {% include 'errors_block.html' %} + +
+
+

{% trans "Network name:" %}

+

{% trans "Device:" %}

+

{% trans "State" %}

+

{% trans "Autostart" %}

+
+
+

{{ pool }}

+

{{ device }}

+

+

{% csrf_token %} + {% ifequal state 0 %} + + + {% else %} + + {% endifequal %} +
+

+

+

{% csrf_token %} + {% ifequal autostart 0 %} + + {% else %} + + {% endifequal %} +
+

+
+
+ {% if state %} +
+ +
+

{% trans "IPv4 Forwarding:" %}

+

{% trans "Network:" %}

+

{% trans "DHCP:" %}

+ {% if ipv4_dhcp_range_start and ipv4_dhcp_range_end %} +

{% trans "Start:" %}

+

{% trans "End:" %}

+ {% endif %} +
+
+

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

+

{{ ipv4_network }}

+

+ {% if ipv4_dhcp_range_start and ipv4_dhcp_range_end %} + {% trans "ON" %} + {% else %} + {% trans "OFF" %} + {% endif %} +

+ {% if ipv4_dhcp_range_start and ipv4_dhcp_range_end %} +

{{ ipv4_dhcp_range_start }}

+

{{ ipv4_dhcp_range_end }}

+ {% endif %} +
+
+ {% if fixed_address %} +
+ +
+
+
+ +
+
+
+
+ +
+ + +
+ + + + + + + + + {% for fix in fixed_address %} + + + + + {% endfor %} + +
{% trans "Address" %}{% trans "MAC" %}
{{ fix.host }}{{ fix.mac }}
+
+
+
+
+
+
+ {% endif %} + {% endif %} +{% endblock %} +{% block script %} + +{% endblock %} \ No newline at end of file diff --git a/templates/storage.html b/templates/storage.html index 6363a2e..88e9dcd 100644 --- a/templates/storage.html +++ b/templates/storage.html @@ -36,16 +36,16 @@

{% trans "Pool type:" %}

{% trans "Pool path:" %}

{% trans "Pool status:" %}

-

{% trans "Size" %} ({{ size|filesizeformat }} / {{ used|filesizeformat }})

-

{% trans "State" %}

-

{% trans "Autostart" %}

+

{% trans "Size:" %} ({{ size|filesizeformat }} / {{ used|filesizeformat }})

+

{% trans "State:" %}

+

{% trans "Autostart:" %}

{{ pool }}

{% if not type %}{% trans "None" %}{% else %}{{ type }}{% endif %}

{% if not path %}{% trans "None" %}{% else %}{{ path }}{% endif %}

{% if not status %}{% trans "None" %}{% else %}{{ status }}{% endif %}

-

{% trans "Usage" %}: {{ percent }}%

+

{% trans "Usage:" %} {{ percent }}%

{% csrf_token %} {% ifequal state 0 %} @@ -74,8 +74,8 @@
{% if state %} - - {% if volumes %} + + {% if volumes %}