mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 23:25:24 +00:00
add seperation between nics, show nic model
This commit is contained in:
parent
2a86384826
commit
6cebd2f70e
1 changed files with 14 additions and 18 deletions
|
@ -913,12 +913,12 @@
|
||||||
{% for network in networks %}
|
{% for network in networks %}
|
||||||
<tr>
|
<tr>
|
||||||
<td rowspan="2">eth{{ forloop.counter0 }}({{ network.target|default:"no target" }})
|
<td rowspan="2">eth{{ forloop.counter0 }}({{ network.target|default:"no target" }})
|
||||||
<form method="post">{% csrf_token %}
|
<form method="post">{% csrf_token %}
|
||||||
<input name="mac" value="{{ network.mac }}" hidden/>
|
<input name="mac" value="{{ network.mac }}" hidden/>
|
||||||
<input name="set_link_state" value="{{ network.state }}" hidden/>
|
<input name="set_link_state" value="{{ network.state }}" hidden/>
|
||||||
<input type="checkbox" {% if network.state == 'up' %} checked
|
<input type="checkbox" {% if network.state == 'up' %} checked
|
||||||
{% endif %} onclick='submit();' />
|
{% endif %} onclick='submit();' />
|
||||||
{% trans 'active' %}
|
<strong>{% trans 'active' %}</strong>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
<th class="hidden-xs hidden-sm">{% trans 'MAC' %}</th>
|
<th class="hidden-xs hidden-sm">{% trans 'MAC' %}</th>
|
||||||
|
@ -992,27 +992,23 @@
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
<form method="post" name="delete_network" role="form">{% csrf_token %}
|
<form method="post" name="delete_network" role="form">{% csrf_token %}
|
||||||
<button class="btn btn-sm btn-danger" value="{{ network.mac }}" name="delete_network" title="{% trans "Delete Device" %}"
|
<button class="btn btn-sm btn-danger" value="{{ network.mac }}" name="delete_network" title="{% trans "Delete Device" %}"
|
||||||
onclick="return confirm('{% trans "Are you sure?" %}')">
|
onclick="return confirm('{% trans "Are you sure?" %}')">
|
||||||
<i class="glyphicon glyphicon-trash"></i>
|
<i class="glyphicon glyphicon-trash"></i>
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="hidden-xs hidden-sm">{% trans 'IPv4' %}</th>
|
<th class="hidden-xs hidden-sm">{% trans 'IPv4' %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% for ipv4 in network.ipv4|default:"unknown" %}
|
{% for ipv4 in network.ipv4|default:"unknown" %}{{ ipv4 }}{% endfor %}
|
||||||
{{ ipv4 }}
|
|
||||||
{% endfor %}
|
|
||||||
</td>
|
</td>
|
||||||
<th class="hidden-xs hidden-sm">{% trans 'IPv6' %}</th>
|
<th class="hidden-xs hidden-sm">{% trans 'IPv6' %}</th>
|
||||||
<td class="hidden-xs">
|
<td class="hidden-xs">
|
||||||
{% for ipv6 in network.ipv6|default:"unknown" %}
|
{% for ipv6 in network.ipv6|default:"unknown" %}{{ ipv6 }}{% endfor %}
|
||||||
{{ ipv6 }}
|
|
||||||
{% endfor %}
|
|
||||||
</td>
|
</td>
|
||||||
<th class="hidden-xs hidden-sm">{% trans 'Model' %}</th>
|
<th class="hidden-xs hidden-sm">{% trans 'Model' %}</th>
|
||||||
<td>{{ network.model }}</td>
|
<td>{{ network.model }}</td>
|
||||||
|
@ -1025,8 +1021,8 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="background-color: lightgray" class="hidden-xs hidden-sm" colspan="9"></td>
|
<td class="bg-primary hidden-xs hidden-sm" colspan="9"></td>
|
||||||
<td style="background-color: lightgray" class="visible-xs visible-sm" colspan="5"></td>
|
<td class="bg-primary visible-xs visible-sm" colspan="5"></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in a new issue