mannaggianastri/templates/upload.html
2024-06-14 21:17:02 +02:00

50 lines
942 B
HTML

<html>
<head>
<title>{{ title }}</title>
</head>
<img src="static/ZXSpectrum+2-grey.jpg" alt="logo" style="align:center" />
<body>
<div style="margin: 0 auto; margin-top: 30%; width:300px">
<form
action="/upload"
method="POST"
enctype="multipart/form-data"
>
<input type="file" name="file" />
<button type="submit">Upload</button>
</form>
</div>
<div>
<p> Cassette:</p>
<table border="1">
<thead>
<tr>
<th>Nome</th>
<th>
<a href="/kill">kill</a>
</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>
</body>
</p>
</html>