mirror of https://github.com/Aidaho12/haproxy-wi
Aidaho12
7 years ago
10 changed files with 137 additions and 143 deletions
@ -1,67 +0,0 @@
|
||||
{% extends "base.html" %} |
||||
{% block content %} |
||||
{% if role <= 1 %} |
||||
<table class="overview"> |
||||
<tr class="overviewHead"> |
||||
<td class="padding10">Login</td> |
||||
<td class="padding10">Email</td> |
||||
<td>Group</td> |
||||
<td class="padding10">Role</td> |
||||
<td style="width: 200px;"> |
||||
<span class="add-button"> |
||||
<a href="#" title="Show all users" id="show-all-users" style="color: #fff"> |
||||
Show all |
||||
</a> |
||||
</span> |
||||
</td> |
||||
</tr> |
||||
{% set counter = 0 -%} |
||||
{% for user in users %} |
||||
{% set counter = counter + 1 %} |
||||
{% if counter < 4 %} |
||||
<tr> |
||||
<td class="padding10 first-collumn"> {{ user.1 }}</td> |
||||
<td class="padding10"> {{ user.2 }}</td> |
||||
<td class="second-collumn">{{ user.5 }}</td> |
||||
<td>{{ user.4 }}</td> |
||||
<td></td> |
||||
</tr> |
||||
{% else %} |
||||
<tr style="display: none;" class="show-users"> |
||||
<td class="padding10 first-collumn"> {{ user.1 }}</td> |
||||
<td class="padding10"> {{ user.2 }}</td> |
||||
<td class="second-collumn">{{ user.5 }}</td> |
||||
<td>{{ user.4 }}</td> |
||||
<td></td> |
||||
</tr> |
||||
{% endif %} |
||||
{% endfor %} |
||||
</table> |
||||
{% endif %} |
||||
<table class="overview"> |
||||
<tr class="overviewHead"> |
||||
<td class="padding10">Server</td> |
||||
<td class="padding10"> |
||||
HAproxy status |
||||
</td> |
||||
<td class="padding10"> |
||||
Action |
||||
</td> |
||||
<td> |
||||
Last edit |
||||
</td> |
||||
</tr> |
||||
{% for server in servers %} |
||||
<tr> |
||||
<td class="padding10 first-collumn"><a title={{ server.1 }} style="color: #000">{{ server.1 }}</a></td> |
||||
<td class="second-collumn">{{ server.7 }}</td> |
||||
<td class="padding10"> |
||||
<a href="/app/configshow.py?serv={{ server.2 }}&open=open#conf" title="Show config"><img src="/image/pic/show.png" alt="show" class="icon"></a> |
||||
<a href="/app/configshow.py?serv={{ server.2 }}&open=open#conf" title="Edit config"><img src="/image/pic/edit.png" alt="edit" class="icon"></a> |
||||
<a href="/app/configshow.py?serv={{ server.2 }}&open=open#conf" title="Compare config"><img src="/image/pic/compare.png" alt="compare" class="icon"></a> |
||||
<a href="/app/configshow.py?serv={{ server.2 }}&open=open#conf" title="Map listen/frontend/backend"><img src="/image/pic/map.png" alt="map" class="icon"></a> |
||||
</td> |
||||
</tr> |
||||
{% endfor %} |
||||
</table> |
||||
{% endblock %} |
@ -1,30 +0,0 @@
|
||||
{% extends "base.html" %} |
||||
{% block content %} |
||||
<center> |
||||
<h3>Choose server</h3> |
||||
<p> |
||||
<form action="{{ action }}" method="get"> |
||||
<select autofocus required name="serv" id="{{ select_id }}"> |
||||
<option disabled>Choose server</option> |
||||
{% for select in selects %} |
||||
{% if select == serv %} |
||||
<option value="{{ select }}" selected>{{ select }}</option> |
||||
{% else %} |
||||
<option value="{{ select }}">{{ select }}</option> |
||||
{% endif %} |
||||
{% endfor %} |
||||
</select> |
||||
{% if onclick %} |
||||
<a class="ui-button ui-widget ui-corner-all" id="show" title="Show config" onclick="{{ onclick }}">Show</a> |
||||
{% else %} |
||||
<button type="submit" value="open" name="open" class="btn btn-default">Open</button> |
||||
{% endif %} |
||||
</form> |
||||
</p> |
||||
</center> |
||||
<div id="ajax"> |
||||
</div> |
||||
<script> |
||||
window.onload = viewLogs() |
||||
</script> |
||||
{% endblock %} |
Before Width: | Height: | Size: 453 KiB After Width: | Height: | Size: 456 KiB |
Loading…
Reference in new issue