mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 15:45:23 +00:00
fix layout for instance qos configuration
This commit is contained in:
parent
b7fc8a5fea
commit
fd3212de90
1 changed files with 51 additions and 49 deletions
|
@ -1036,33 +1036,34 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if qos %}
|
{% if qos %}
|
||||||
<div class="col-10 col-sm-10">
|
<div class="row mt-3">
|
||||||
|
<div class="col-sm-10">
|
||||||
<p><strong>{% trans "QoS Configuration" %}</strong></p>
|
<p><strong>{% trans "QoS Configuration" %}</strong></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-sm-12">
|
<div class="col-12 col-sm-12">
|
||||||
<table class="table table-hover">
|
<table class="table table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr class="d-flex">
|
||||||
<th scope="col">{% trans "MAC" %}/{% trans "Direction" %}</th>
|
<th scope="col" class="col-2">{% trans "MAC" %}/{% trans "Direction" %}</th>
|
||||||
<th scope="col">{% trans "Average" %}</th>
|
<th scope="col" class="col-2">{% trans "Average" %}</th>
|
||||||
<th scope="col">{% trans "Peak" %}</th>
|
<th scope="col" class="col-3">{% trans "Peak" %}</th>
|
||||||
<th scope="col">{% trans "Burst" %}</th>
|
<th scope="col" class="col-3">{% trans "Burst" %}</th>
|
||||||
<th scope="col">{% trans "Actions" %}</th>
|
<th scope="col" class="col-2">{% trans "Actions" %}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for q, attrs in qos.items %}
|
{% for q, attrs in qos.items %}
|
||||||
{% for att in attrs %}
|
{% for att in attrs %}
|
||||||
<form method="post" role="form" aria-label="Instance QoS configuration form">{% csrf_token %}
|
<form method="post" role="form" aria-label="Instance QoS configuration form">{% csrf_token %}
|
||||||
<tr>
|
<tr class="d-flex">
|
||||||
<td><label class="col-form-label">{{ q }} {{ att.direction | capfirst }}</label></td>
|
<td class="col-2"><label class="col-form-label">{{ q }} {{ att.direction | capfirst }}</label></td>
|
||||||
<td><input id="qos_average" class="form-control" name="qos_average"
|
<td class="col-2"><input id="qos_average" class="form-control" name="qos_average"
|
||||||
value="{{ att.average|default:'' }}"/>
|
value="{{ att.average|default:'' }}"/>
|
||||||
</td>
|
</td>
|
||||||
<td><input id="qos_peak" class="form-control" name="qos_peak"
|
<td class="col-3"><input id="qos_peak" class="form-control" name="qos_peak"
|
||||||
value="{{ att.peak|default:'' }}"/>
|
value="{{ att.peak|default:'' }}"/>
|
||||||
</td>
|
</td>
|
||||||
<td><input id="qos_burst" class="form-control" name="qos_burst"
|
<td class="col-3"><input id="qos_burst" class="form-control" name="qos_burst"
|
||||||
value="{{ att.burst|default:'' }}"/>
|
value="{{ att.burst|default:'' }}"/>
|
||||||
</td>
|
</td>
|
||||||
<td class="col-sm-2">
|
<td class="col-sm-2">
|
||||||
|
@ -1086,6 +1087,7 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue