hmmm
This commit is contained in:
parent
e7f74e6882
commit
5a1a5b880b
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user