{% 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 %}