aboutsummaryrefslogtreecommitdiffstats
path: root/Web/Server/templates/index.html
blob: 730d6c5b4d203c96e311bdf8fd02e5efc4bb1c3f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{% extends "base.html" %}

{% block content %}
	<div id="upload">
		<h2>Upload a python file onto the Inverted Pendulum</h2>
		<p>
			{% with messages = get_flashed_messages() %}
			{% if messages %}
				<ul class=flashes>
				{% for message in messages %}
				<li>{{ message }}</li>
				{% endfor %}
				</ul>
			{% endif %}
			{% endwith %}
		</p>
	
		<form method="post" action="/upload" enctype="multipart/form-data">
			<dl>
				<p>
					<input id="choose_file" type="file" name="file" autocomplete="off" required>
				</p>
			</dl>
			<p>
				<input id="submit" type="submit" value="Submit" onclick="showLoad()">
			</p>
		</form>
	</div>
	
	<div id="message"></div>

{% endblock %}