g tout peter mais c'est fait exprès
This commit is contained in:
parent
b5abd589ba
commit
5d8ebc379b
@ -369,10 +369,13 @@ def stats():
|
|||||||
return(render_template("stats.html"))
|
return(render_template("stats.html"))
|
||||||
|
|
||||||
|
|
||||||
@app.route("/override/", methods=["GET", "POST"])
|
@app.route("/override/", methods=["POST"])
|
||||||
def override():
|
def override_post():
|
||||||
return(render_template("vnc.html"))
|
return(render_template("vnc_post.html"))
|
||||||
|
|
||||||
|
@app.route("/override/", methods=["GET"])
|
||||||
|
def override_get():
|
||||||
|
return(render_template("vnc_get.html"))
|
||||||
|
|
||||||
@app.route('/download/<path:filename>', methods=['GET', 'POST'])
|
@app.route('/download/<path:filename>', methods=['GET', 'POST'])
|
||||||
@login_required
|
@login_required
|
||||||
|
53
Flask/templates/vnc_get.html
Normal file
53
Flask/templates/vnc_get.html
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
|
||||||
|
{% extends "base.html" %}
|
||||||
|
{% block left_pannel %}override{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
{%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, data2, '{{len}}')" 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>
|
||||||
|
{% endfor %}
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
<td style="width: 10%;">name : </td>
|
||||||
|
<td>
|
||||||
|
<input type="text" id="name" name="name" value = "">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="width: 10%;">Proxy : </td>
|
||||||
|
<td style="width: 40%;">
|
||||||
|
<select id="proxy" name="proxy">
|
||||||
|
<option id="" value="-1">No proxy</option>
|
||||||
|
{% for i in proxys %}
|
||||||
|
<option id="{{proxys[i]['name']}}" value="{{i}}">{{proxys[i]['name']}}</option>
|
||||||
|
{% endfor %}
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
<td style="width: 10%;">Discord : </td>
|
||||||
|
<td>
|
||||||
|
<select id="discord" name="discord">
|
||||||
|
<option id="no discord" value="-1">No discord (not sure about the support)</option>
|
||||||
|
{% for i in discords %}
|
||||||
|
<option id="{{discords[i]['name']}}" value="{{i}}">{{discords[i]['name']}}</option>
|
||||||
|
{% endfor %}
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
{%endblock %}
|
Loading…
Reference in New Issue
Block a user