mannaggianastri/templates/upload.html

51 lines
977 B
HTML
Raw Normal View History

2024-06-14 17:39:50 +02:00
<html>
<head>
<title>{{ title }}</title>
2024-06-14 21:32:25 +02:00
<link rel="stylesheet" type="text/css" href="/static/style.css">
2024-06-14 17:39:50 +02:00
</head>
2024-06-14 19:17:23 +02:00
<img src="static/ZXSpectrum+2-grey.jpg" alt="logo" style="align:center" />
2024-06-14 17:39:50 +02:00
2024-06-14 19:17:23 +02:00
<body>
2024-06-14 21:32:25 +02:00
<div id="form">
2024-06-14 19:17:23 +02:00
<form
action="/upload"
method="POST"
2024-06-14 21:32:25 +02:00
enctype="multipart/form-data">
2024-06-14 17:39:50 +02:00
<input type="file" name="file" />
<button type="submit">Upload</button>
</form>
2024-06-14 19:17:23 +02:00
</div>
2024-06-14 19:52:38 +02:00
<div>
<p> Cassette:</p>
2024-06-14 21:32:25 +02:00
<table border="1" id="table">
2024-06-14 19:52:38 +02:00
<thead>
<tr>
<th>Nome</th>
2024-06-14 21:17:02 +02:00
<th>
<a href="/kill">kill</a>
</th>
2024-06-14 19:52:38 +02:00
<!-- {% for header in headers %} -->
2024-06-14 21:17:02 +02:00
<th>
{{ header }}
</th>
2024-06-14 19:52:38 +02:00
<!-- {% endfor %} -->
</tr>
</thead>
<tbody>
{% for file in files %}
<tr>
<td>{{ file }}</td>
2024-06-14 21:17:02 +02:00
<td>
<a href="/run/{{ file }}">run</a>
</td>
2024-06-14 19:52:38 +02:00
</tr>
{% endfor %}
</tbody>
</table>
</div>
2024-06-14 19:17:23 +02:00
</body>
</p>
2024-06-14 17:39:50 +02:00
</html>