2018-05-05 12:40:41 +00:00
{% extends "base.html" %}
{% block content %}
2020-05-07 15:25:32 +00:00
{% if selects|length == 0 %}
{% include 'include/getstarted.html' %}
{% else %}
2021-10-17 05:57:51 +00:00
< link href = "/inc/table.css" rel = "stylesheet" type = "text/css" >
< script type = "text/javascript" charset = "utf8" src = "/inc/dataTables.min.js" > < / script >
2018-05-05 12:40:41 +00:00
< center >
< p >
2019-12-04 13:38:07 +00:00
< form action = "{{ action }}" method = "post" >
2021-10-17 05:57:51 +00:00
< input type = "hidden" value = "{{service}}" name = "service" id = "service" >
2019-10-25 07:18:57 +00:00
{% include 'include/select.html' %}
2022-01-16 13:50:53 +00:00
< a class = "ui-button ui-widget ui-corner-all" title = "Open versions" onclick = "showListOfVersion(1)" > Open< / a >
2021-11-16 08:03:43 +00:00
< a href = "config.py?service={{service}}" class = "ui-button ui-widget ui-corner-all" title = "Configs page" > Configs< / a >
2020-11-02 17:01:08 +00:00
{% if service != 'keepalived' %}
< a class = "ui-button ui-widget ui-corner-all" title = "View stat" onclick = "openStats()" > Stat< / a >
{% endif %}
2021-11-16 08:03:43 +00:00
< a class = "ui-button ui-widget ui-corner-all" title = "Change version" onclick = "changeVersion()" > Change version< / a >
2018-05-05 12:40:41 +00:00
< / form >
< / p >
2020-02-22 08:32:44 +00:00
{% if aftersave %}
< div class = "alert alert-info" > < b > The following files have been deleted:< / b > < br / > < / div >
{% if stderr %}
{% include 'include/errors.html' %}
{% else %}
< div class = "alert alert-success" >
{% for f in file %}
{{f}}
{% endfor %}
< / div >
{% endif %}
{% endif %}
2021-10-17 05:57:51 +00:00
< div id = "config_version_div" > < / div >
2021-11-05 07:03:51 +00:00
{% if not aftersave %}
2021-10-17 05:57:51 +00:00
< div class = "add-note addName alert-info" style = "width: inherit; margin-right: 15px; margin-top: 40%" >
Here you can work with previous versions of {%if service == 'keepalived' %}Keepalived{%elif service == 'nginx' %}Nginx{%else%}HAProxy{%endif%} configs. Roll back to them, view or delete
< / div >
2018-05-05 12:40:41 +00:00
{% endif %}
2021-11-05 07:03:51 +00:00
{% if open and not aftersave %}
2021-10-31 07:46:17 +00:00
{% for select in selects %}
{% if select.2 == serv %}
< script > showListOfVersion ( 1 ) < / script >
{% endif %}
{% endfor %}
{% endif %}
2020-05-07 15:25:32 +00:00
< / center >
{% endif %}
{% endblock %}