haproxy-wi/app/templates/ajax/show_compare_configs.html

28 lines
1.1 KiB
HTML
Raw Normal View History

{% from 'include/input_macros.html' import input %}
<form action="" method="post">
<div style="text-align: center;margin-top: 20px;">
<h4>Comparing config files</h4>
2018-07-16 04:52:43 +00:00
<p>
<select autofocus required name="left" id="left">
<option disabled selected>Select an older config</option>
2018-07-16 04:52:43 +00:00
{% for file in return_files %}
{% if file == left %}
<option value="{{ file }}" selected>{{ file.split('-', maxsplit=1)[1] }}</option>
2018-07-16 04:52:43 +00:00
{% else %}
<option value="{{ file }}">{{ file.split('-', maxsplit=1)[1] }}</option>
2018-07-16 04:52:43 +00:00
{% endif %}
{% endfor %}
</select>
<select autofocus required name="right" id="right">
<option disabled selected>Select a newer config</option>
{% for file in return_files %}
<option value="{{ file }}">{{ file.split('-', maxsplit=1)[1] }}</option>
2018-07-16 04:52:43 +00:00
{% endfor %}
</select>
2019-10-31 19:51:43 +00:00
{{ input('serv', type='hidden', value=serv) }}
{{ input('open', type='hidden', value='open') }}
<a class="ui-button ui-widget ui-corner-all" id="show" title="Compare" onclick="showCompare()">Compare</a>
2018-07-16 04:52:43 +00:00
</p>
</div>
2018-07-16 04:52:43 +00:00
</form>