This commit is contained in:
piair 2023-09-10 11:03:05 +02:00
parent e7f74e6882
commit 5a1a5b880b
1 changed files with 2 additions and 1 deletions

View File

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