This commit is contained in:
piair 2023-09-10 11:03:05 +02:00
parent e7f74e6882
commit 5a1a5b880b

View File

@ -43,6 +43,7 @@
{% block content %}
<script>data = JSON.parse('{{configs|tojson}}'); </script>
<script>data2 = JSON.parse('{{configs|tojson}}'); </script>
{%if not current_user.is_authenticated %}
<button class="unselected" onclick="location.href = '/login';">login</button>
{% else %}
@ -51,7 +52,7 @@
<tr>
<td style="width: 10%;">config : </td>
<td style="width: 40%;">
<select onchange="change_config(this.value, data, '{{len}}')" name="config">
<select onchange="change_config(this.value, data2, '{{len}}')" name="config">
<option id="config" value="{{len}}">New config</option>
{% for i in configs %}
<option id="{{configs[i]['name']}}" value="{{i}}">{{configs[i]['name']}}</option>