mannaggianastri/templates/upload.html

43 lines
836 B
HTML
Raw Normal View History

2024-06-14 17:39:50 +02:00
<html>
<head>
<title>{{ title }}</title>
</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>
<div style="margin: 0 auto; margin-top: 30%; width:300px">
<form
action="/upload"
method="POST"
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>
<table border="1">
<thead>
<tr>
<th>Nome</th>
<!-- {% for header in headers %} -->
<!-- <th>{{ header }}</th> -->
<!-- {% endfor %} -->
</tr>
</thead>
<tbody>
{% for file in files %}
<tr>
<td>{{ file }}</td>
<td><a href="/run/{{ file }}">run</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
2024-06-14 19:17:23 +02:00
</body>
</p>
2024-06-14 17:39:50 +02:00
</html>