MsRewards-Reborn/Flask/templates/discord.html

56 lines
2.1 KiB
HTML
Raw Normal View History

2023-06-17 16:52:47 +02:00
{% extends "base.html" %}
2023-09-20 13:00:48 +02:00
{% block left_pannel %}discord{% endblock %}
2023-06-17 16:52:47 +02:00
{% block content %}
2023-08-26 13:14:32 +02:00
<script>data = JSON.parse('{{data|tojson}}'); </script>
2023-06-17 16:52:47 +02:00
{%if not current_user.is_authenticated %}
<button class="unselected" onclick="location.href = '/login';">login</button>
{% else %}
<form method="post" action="/discord/">
<table>
<tr>
<td></td>
<td>
<select name="select" onchange="change_discord(this.value, data, '{{len}}')">
2023-06-17 16:52:47 +02:00
<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>
{% endfor %}
</select>
</td>
</tr>
<tr>
<td class="comlumn-name">name</td>
<td><input type="text" id="name" name="name" value=""></td>
</tr>
<tr>
<td class="comlumn-name">Send errors</td>
2023-09-28 15:03:08 +02:00
<td><input type="checkbox" id="errorsT" name="errorsT" class="toogle"/><label for="errorsT">Toggle</label></td>
2023-06-17 16:52:47 +02:00
</tr>
<tr>
<td class="comlumn-name">Send success</td>
2023-09-28 15:03:08 +02:00
<td><input type="checkbox" id="successT" name="successT" class="toogle"/><label for="successT">Toggle</label></td>
2023-06-17 16:52:47 +02:00
</tr>
<tr>
<td class="comlumn-name">Success link</td>
<td><input type="text" id="successL" name="successL" value=""></td>
</tr>
<tr>
<td class="comlumn-name">Failure Link</td>
<td><input type="text" id="errorsL" name="errorsL" value=""></td>
</tr>
2023-06-18 17:40:59 +02:00
</table>
<table>
2023-06-17 16:52:47 +02:00
<tr>
2023-06-18 17:40:59 +02:00
<td class="comlumn-name"></td>
2023-07-01 16:21:51 +02:00
<td style="width:60%;"><input type="submit" name="DISCORD" id="submit" value="Create !" class="confirm" style="width:86%;"/></td>
2023-06-18 17:40:59 +02:00
<td style="padding-right: 20px;">
2023-07-01 16:21:51 +02:00
<input type="submit" name="DISCORD" id="submit" value="delete" class="ban" style="width:60%;"/>
2023-06-18 17:40:59 +02:00
</td>
2023-06-17 16:52:47 +02:00
</tr>
</table>
</form>
{% endif %}
{% endblock %}