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 %}
2018-05-05 12:40:41 +00:00
< center >
< h3 > Choose server< / h3 >
< p >
2019-12-04 13:38:07 +00:00
< form action = "{{ action }}" method = "post" >
2019-09-26 15:48:56 +00:00
< a class = "ui-button ui-widget ui-corner-all" title = "Return back" onclick = "history.back()" > Back< / a >
2019-10-25 07:18:57 +00:00
{% include 'include/select.html' %}
2018-05-05 12:40:41 +00:00
< button type = "submit" value = "open" name = "open" class = "btn btn-default" > Open< / button >
< / form >
2019-09-22 15:46:26 +00:00
{% if not aftersave and not open %}
< div class = "add-note addName alert-info" style = "width: inherit; margin-right: 15px;" >
2020-02-02 14:23:00 +00:00
Here you can work with previous versions of {%if service == 'keepalived' %}Keepalived{%else%}HAProxy{%endif%} configs. Roll back to them, view or delete
2019-09-22 15:46:26 +00:00
< / div >
{% endif %}
2018-05-05 12:40:41 +00:00
< / 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 %}
2018-05-05 12:40:41 +00:00
{% if open %}
< center >
2019-09-20 06:42:19 +00:00
< h4 > Choose old version< / h4 >
2020-02-02 14:23:00 +00:00
< form action = "{{action}}" method = "post" >
2018-05-05 12:40:41 +00:00
< label for = "select_all" id = "label_select_all" > < b > Select all< / b > < / label >
< input type = "checkbox" id = "select_all" > < br / >
{% for file in return_files %}
2018-09-26 15:10:35 +00:00
< label for = "{{file}}" > {{file.split('-', maxsplit=1)[1]}} < / label > < input type = "checkbox" value = "{{file}}" name = "{{file}}" id = "{{file}}" >
2020-02-05 08:15:57 +00:00
< a href = "/app/versions.py?service={{service}}&serv={{serv}}&open=open&configver={{file}}" class = "ui-button ui-widget ui-corner-all" title = "View and upload this version of the config" style = "margin-top: -6px;" >
2019-09-17 07:18:48 +00:00
Upload
< / a > < br / >
2018-05-05 12:40:41 +00:00
{% endfor %}
< input type = "hidden" value = "{{serv}}" name = "serv" >
< input type = "hidden" value = "open" name = "open" >
< input type = "hidden" value = "del" name = "del" >
< p >
< button type = "submit" value = "" name = "" class = "btn btn-default" > Delete< / button >
< / p >
< / form >
2019-10-25 07:18:57 +00:00
< / center >
2018-05-05 12:40:41 +00:00
{% endif %}
2020-05-07 15:25:32 +00:00
< / center >
{% endif %}
{% endblock %}