firewall: Resize the info table to full width

Signed-off-by: Manish Tripathy <manisht@thougtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2018-06-18 19:36:42 +05:30
parent ee80d77be5
commit b162a2bc04
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -38,65 +38,61 @@
{% else %}
<div class="row">
<div class="col-lg-8">
<table class='table table-autowidth'>
<thead>
<th><center>{% trans "Show Ports" %}</center></th>
<th>{% trans "Service/Port" %}</th>
<th>{% trans "Status" %}</th>
</thead>
<table class='table table-autowidth'>
<thead>
<th><center>{% trans "Show Ports" %}</center></th>
<th>{% trans "Service/Port" %}</th>
<th>{% trans "Status" %}</th>
</thead>
<tbody>
{% for service in services|dictsort:"name" %}
{% if service.ports %}
<tr>
<td>
<center>
<button data-toggle="collapse"
data-target=".{{service.service_id}}"
class="btn btn-info btn-xs">+</button>
</center>
</td>
<td><strong>{{ service.name }}</strong></td>
<td>
{% if service.is_enabled %}
<span class='label label-success'>
{% trans "Enabled" %}</span>
{% else %}
<span class='label label-warning'>
{% trans "Disabled" %}</span>
{% endif %}
</td>
</tr>
{% for port in service.ports %}
<tr class="collapse out {{service.service_id}}"
style="background-color: #f9f9f9" >
<td></td>
<td class='cell-indented'><em>{{ port }}</em></td>
<td>
{% if port in internal_enabled_services and port in external_enabled_services %}
<span class='label label-success'>
{% trans "Permitted" %}</span>
{% elif port in internal_enabled_services %}
<span class='label label-warning'>
{% trans "Permitted (internal only)" %}</span>
{% elif port in external_enabled_services %}
<span class='label label-warning'>
{% trans "Permitted (external only)" %}</span>
{% else %}
<span class='label label-danger'>
{% trans "Blocked" %}</span>
{% endif %}
</td>
</tr>
{% endfor %}
{% endif %}
<tbody>
{% for service in services|dictsort:"name" %}
{% if service.ports %}
<tr>
<td>
<center>
<button data-toggle="collapse"
data-target=".{{service.service_id}}"
class="btn btn-info btn-xs">+</button>
</center>
</td>
<td><strong>{{ service.name }}</strong></td>
<td>
{% if service.is_enabled %}
<span class='label label-success'>
{% trans "Enabled" %}</span>
{% else %}
<span class='label label-warning'>
{% trans "Disabled" %}</span>
{% endif %}
</td>
</tr>
{% for port in service.ports %}
<tr class="collapse out {{service.service_id}}"
style="background-color: #f9f9f9" >
<td></td>
<td class='cell-indented'><em>{{ port }}</em></td>
<td>
{% if port in internal_enabled_services and port in external_enabled_services %}
<span class='label label-success'>
{% trans "Permitted" %}</span>
{% elif port in internal_enabled_services %}
<span class='label label-warning'>
{% trans "Permitted (internal only)" %}</span>
{% elif port in external_enabled_services %}
<span class='label label-warning'>
{% trans "Permitted (external only)" %}</span>
{% else %}
<span class='label label-danger'>
{% trans "Blocked" %}</span>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
{% endfor %}
</tbody>
</table>
<p>
<em>