mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 23:25:24 +00:00
Do not show Network devices header if there is not any.
This commit is contained in:
parent
a7e0e49007
commit
e28cc71710
1 changed files with 5 additions and 2 deletions
|
@ -805,13 +805,16 @@
|
||||||
</div>
|
</div>
|
||||||
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="network">
|
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="network">
|
||||||
<p>
|
<p>
|
||||||
{% trans "Assign network device to bridge" %}
|
{% trans "Add a network device" %}
|
||||||
{% include 'add_instance_network_block.html' %}
|
{% include 'add_instance_network_block.html' %}
|
||||||
</p>
|
</p>
|
||||||
<p style="font-weight:bold;">{% trans "Network devices" %}</p>
|
|
||||||
<div class="col-xs-12 col-sm-12">
|
<div class="col-xs-12 col-sm-12">
|
||||||
<form method="post" role="form">{% csrf_token %}
|
<form method="post" role="form">{% csrf_token %}
|
||||||
{% for network in networks %}
|
{% for network in networks %}
|
||||||
|
{% if forloop.first %}
|
||||||
|
<p><strong>{% trans "Network Devices" %}</strong></p>
|
||||||
|
{% endif %}
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<label>eth{{ forloop.counter0 }}({{ network.target|default:"no target" }})</label>
|
<label>eth{{ forloop.counter0 }}({{ network.target|default:"no target" }})</label>
|
||||||
|
|
Loading…
Reference in a new issue