aboutsummaryrefslogtreecommitdiffstats
path: root/Web/Server/templates/index.html
blob: 70a282bd2ae07cca4c530ca27bda5fee45c915fc (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
33
34
35
36
37
38
39
40
41
42
43
<html>
    <head>
        <link rel="stylesheet" href="/static/Server.css">
        <script type="text/javascript" src="/static/Server.js"></script>
    </head>
    <body>
		<title>ANDI'S PIE</title>
		<div id="upload">
			<h2>Select a file to upload</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 type="file" name="file" autocomplete="off" required>
					</p>
				</dl>
				<p>
					<input type="submit" value="Submit" onclick="showLoad()">
				</p>
			</form>
		</div>
		
		<div id="message"></div>

		{% if results %}
			<form method="get" action="/results">
				<button type="submit">Download!</button>
			</form>
		{% endif %}

    </body>
</html>