mirror of
https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
synced 2025-06-22 18:03:57 +02:00
let's go ca marche je pense
This commit is contained in:
@ -42,17 +42,16 @@
|
||||
|
||||
|
||||
{% block content %}
|
||||
<script>data = JSON.parse('{{data|tojson}}'); </script>
|
||||
{%if not current_user.is_authenticated %}
|
||||
<button class="unselected" onclick="location.href = '/login';">login</button>
|
||||
{% else %}
|
||||
<form method="post" action="/config/">
|
||||
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width: 10%;">config : </td>
|
||||
<td style="width: 40%;">
|
||||
<select onchange="change_config(this.value)" name="config">
|
||||
<select onchange="change_config(this.value, data)" 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>
|
||||
|
@ -40,7 +40,7 @@
|
||||
</table>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<script>data = JSON.parse('{{data|tojson}}'); </script>
|
||||
{%if not current_user.is_authenticated %}
|
||||
<button class="unselected" onclick="location.href = '/login';">login</button>
|
||||
{% else %}
|
||||
@ -49,7 +49,7 @@
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<select name="select" onchange="change_discord(this.value)">
|
||||
<select name="select" onchange="change_discord(this.value, data)">
|
||||
<option selected id="new" value="{{ len }}">Create new Discord config</option>
|
||||
{% for i in data %}
|
||||
<option id="{{data[i]['name']}}" value="{{i}}">{{data[i]['name']}}</option>
|
||||
|
Reference in New Issue
Block a user