2018-05-05 12:40:41 +00:00
{% extends "base.html" %}
{% block content %}
2019-10-25 07:18:57 +00:00
{% from 'include/input_macros.html' import input, checkbox %}
2018-05-05 12:40:41 +00:00
< table class = "overview" >
< tr class = "overviewHead" >
< td class = "padding10 first-collumn" > Server< / td >
< td > Disable/Enable server or output any information< / td >
2019-10-02 06:35:34 +00:00
< td > Command< / td >
< td class = "checkbox-head" > Save change< / td >
2018-05-05 12:40:41 +00:00
< td > < / td >
< / tr >
< tr >
< td class = "padding10 first-collumn" style = "width: 25%;" >
2019-12-04 13:38:07 +00:00
< form action = "{{ action }}" method = "post" id = "runtimeapiform" >
2019-10-25 07:18:57 +00:00
{% include 'include/select.html' %}
2018-05-05 12:40:41 +00:00
< / td >
< td style = "width: 30%;" >
< select required name = "servaction" id = "servaction" >
< option disabled > Choose action< / option >
{% if role < = 2 %}
< option value = "disable" > Disable< / option >
< option value = "enable" > Enable< / option >
< option value = "set" > Set< / option >
{% endif %}
< option value = "show" selected > Show< / option >
< / select >
< / td >
< td >
2019-10-25 07:18:57 +00:00
{{ input('servbackend', value=servbackend, title='Frontend, backend/server, show: info, pools or help', required='required') }}
2018-05-05 12:40:41 +00:00
< / td >
2019-10-02 06:35:34 +00:00
< td class = "checkbox" >
2018-05-05 12:40:41 +00:00
{% if role < = 2 %}
2019-10-25 07:18:57 +00:00
{{ checkbox('save', value='123') }}
2018-05-05 12:40:41 +00:00
{% endif %}
< / td >
< td >
2019-09-17 07:18:48 +00:00
< button type = "submit" name = "Enter" value = "Enter" id = "enter" > Enter< / button >
2018-05-05 12:40:41 +00:00
< / td >
< / form >
< / tr >
< / table >
2018-07-07 09:43:31 +00:00
< script >
if($('#servbackend').val()) {
window.onload = {{ onclick }}
}
2019-12-01 17:15:09 +00:00
if (window.matchMedia('(max-width: 786px)').matches || window.matchMedia('(max-width: 1024px)').matches || window.matchMedia('(max-width: 667px)').matches) {
$( "#servaction" ).selectmenu({
width: 150
});
$( "#serv" ).selectmenu({
width: 150
});
}
2018-07-07 09:43:31 +00:00
< / script >
2019-10-02 06:35:34 +00:00
< div id = "ajaxruntime" > < / div >
< div class = "add-note addName alert-info" style = "width: inherit; margin-right: 15px;" >
2019-10-04 06:23:48 +00:00
You can read the description of all Run Time API < a href = "https://haproxy-wi.org/description.py?description=runtimeapi" title = "Run Time API description" target = "_blank" > here< / a >
2019-10-02 06:35:34 +00:00
< / div >
2018-05-05 12:40:41 +00:00
{% endblock %}