filter enabled items

This commit is contained in:
deflax 2017-06-26 17:39:31 +03:00
parent 500b12dd28
commit f2c6d62556

View file

@ -28,8 +28,8 @@
</thead> </thead>
<tbody> <tbody>
{% for deploy in deployments %} {% for deploy in deployments %}
<tr> {% if deploy.enabled == True %}<tr class="error">{% else %}<tr>{% endif %}
<td>{% if deploy.enabled == True %}<font color="green">{% else %}<font color="red">{% endif %}{{ deploy.machine_id }}</td> <td>{{ deploy.machine_id }}</td>
<td>{{ deploy.machine_alias }}</font></td> <td>{{ deploy.machine_alias }}</font></td>
<td>{{ deploy.machine_cpu }} c.</td> <td>{{ deploy.machine_cpu }} c.</td>
<td>{{ deploy.machine_mem }} MB</td> <td>{{ deploy.machine_mem }} MB</td>
@ -61,7 +61,7 @@
</thead> </thead>
<tbody> <tbody>
{% for service in services %} {% for service in services %}
<tr> {% if service.enabled == True %}<tr class="error">{% else %}<tr>{% endif %}
<td>{{ service.category }}</td> <td>{{ service.category }}</td>
<td>{{ service.description }}</td> <td>{{ service.description }}</td>
<td>{{ service.period }}</td> <td>{{ service.period }}</td>
@ -91,7 +91,7 @@
</thead> </thead>
<tbody> <tbody>
{% for domain in domains %} {% for domain in domains %}
<tr> {% if domain.enabled == True %}<tr class="error">{% else %}<tr>{% endif %}
<td><b><a href="http://{{ domain.fqdn }}">{{ domain.fqdn }}</a></b></td> <td><b><a href="http://{{ domain.fqdn }}">{{ domain.fqdn }}</a></b></td>
<td>{{ domain.date_expire }}</td> <td>{{ domain.date_expire }}</td>
<td><a href="{{ url_for('admin.dashboard', user_pid=domain.user_id) }}">{{ domain.owner.email }}</a></td> <td><a href="{{ url_for('admin.dashboard', user_pid=domain.user_id) }}">{{ domain.owner.email }}</a></td>
@ -119,6 +119,7 @@
<tbody> <tbody>
{% for address in addresses %} {% for address in addresses %}
<tr> <tr>
{% if address.enabled == True %}<tr class="error">{% else %}<tr>{% endif %}
<td>{{ address.ip }}</td> <td>{{ address.ip }}</td>
<td>{{ address.mac }}</td> <td>{{ address.mac }}</td>
<td>{{ address.rdns }}</td> <td>{{ address.rdns }}</td>