MsRewards/Flask/templates/settings.html

93 lines
2.6 KiB
HTML
Raw Normal View History

2023-06-17 16:52:47 +02:00
{% extends "base.html" %}
{% block left_pannel %}
<table>
<tr>
<td>
<button class="unselected" onclick="location.href = '/override';">override</button>
</td>
</tr>
<tr>
<td>
2023-06-18 17:40:59 +02:00
<button class="unselected" onclick="location.href = '/config';">config</button>
2023-06-17 16:52:47 +02:00
</td>
</tr>
<tr>
<td>
<button class="unselected" onclick="location.href = '/discord';">discord</button>
</td>
</tr>
<tr>
<td>
<button class="unselected" onclick="location.href = '/proxy';">proxy</button>
</td>
</tr>
2023-08-25 16:25:17 +02:00
<tr>
<td>
<button class="unselected" onclick="location.href = '/logs';">logs</button>
</td>
</tr>
2023-08-24 14:36:24 +02:00
<tr>
<td>
<button class="unselected" onclick="location.href = '/grafana';">stats</button>
2023-08-24 14:36:24 +02:00
</td>
</tr>
2023-06-17 16:52:47 +02:00
<tr>
<td>
<button class="selected" onclick="location.href = '/settings';">settings</button>
</td>
</tr>
</table>
{% endblock %}
{% block content %}
{%if not current_user.is_authenticated %}
<button class="unselected" onclick="location.href = '/login';">login</button>
{% else %}
<form method="post" action="/settings/">
<table>
<tr>
<td class="comlumn-name">avatar url :</td>
<td><input type="text" name="avatarlink" value="{{data['avatarlink']}}"></td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" name="settings" id="submit" value="update" class="button"/>
</td>
</tr>
</table>
</form>
<h2>TODO</h2>
<ul>
<li>reorder config</li>
<li>real override</li>
<li>ban button</li>
<li>pourquoi tout ne se lance pas bien ?</li>
<li>synchroniser le mot de passe de grafana et celui du bot</li>
</ul>
<br><br>
<h2>Backup config files</h2>
2023-08-25 11:54:14 +02:00
<ul>
<li><a href="/download/configs.json">download account config</a></li>
<li><a href="/download/discord.json">download discord config</a></li>
<li><a href="/download/flask.json">download flask config</a></li>
<li><a href="/download/proxy.json">download proxy config</a></li>
<li><a href="/download/settings.json">download settings</a></li>
</ul>
2023-08-21 21:07:54 +02:00
<br><br>
<h2>Upload your files</h2>
2023-08-21 20:48:51 +02:00
<form method="POST" action="/upload_file/" enctype=multipart/form-data>
2023-08-21 21:16:59 +02:00
<table id="table">
<tr><td><input type="file" id="file1" name="file1" onchange='addline(0)'></td></tr>
<tr><td><input type="submit" name="settings" id="submit" value="send file" class="button"/></td></tr>
2023-08-21 21:03:26 +02:00
</table>
2023-08-21 20:39:45 +02:00
</form>
2023-08-21 21:16:59 +02:00
2023-06-17 16:52:47 +02:00
{% endif %}
{%endblock %}