mirror of https://github.com/Aidaho12/haproxy-wi
30 lines
855 B
HTML
30 lines
855 B
HTML
{% 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 %} |