2018-05-05 12:40:41 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
|
|
<center>
|
2019-10-25 07:18:57 +00:00
|
|
|
<p>
|
2019-12-04 13:38:07 +00:00
|
|
|
<form action="{{ action }}" method="post">
|
2020-02-05 08:15:57 +00:00
|
|
|
<input type="hidden" id="service" value="{{service}}">
|
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>
|
|
|
|
</p>
|
2018-05-06 19:58:52 +00:00
|
|
|
{% if not aftersave %}
|
2021-10-03 18:46:19 +00:00
|
|
|
{% if stderr %}
|
2019-10-25 07:18:57 +00:00
|
|
|
{% include 'include/errors.html' %}
|
2018-05-06 19:58:52 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2018-05-05 12:40:41 +00:00
|
|
|
{% if open %}
|
2021-10-17 05:57:51 +00:00
|
|
|
<div id="config_version_div"></div>
|
|
|
|
<script>showListOfVersion(0)</script>
|
2018-05-05 12:40:41 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if aftersave %}
|
2021-10-03 18:46:19 +00:00
|
|
|
<div class="alert alert-info alert-two-row">The following version of the configuration file has been uploaded and saved as: {{ configver }} </div>
|
2022-04-19 15:20:26 +00:00
|
|
|
{% if 'is valid' not in stderr %}
|
2019-10-25 07:18:57 +00:00
|
|
|
{% include 'include/errors.html' %}
|
2018-05-05 12:40:41 +00:00
|
|
|
{% else %}
|
2019-10-25 07:18:57 +00:00
|
|
|
<div class="alert alert-success">Config is ok</div>
|
2022-08-15 08:50:29 +00:00
|
|
|
<a href="statsview.py?serv={{ serv }}" target="_blank" title="View stats">Go to view stats</a>
|
2018-05-05 12:40:41 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2018-06-11 15:05:57 +00:00
|
|
|
</center>
|
2018-05-05 12:40:41 +00:00
|
|
|
{% endblock %}
|