mannaggianastri/templates/upload.html
2024-06-15 12:12:39 +02:00

50 lines
1.2 KiB
HTML

<html>
<head>
<meta charset="utf-8" />
<title>{{ title }}</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="/static/style.css" />
</head>
<body>
<img id="logo" src="static/ZXSpectrum+2-grey.jpg" alt="logo" />
<div id="main">
<form
id="form"
action="/upload"
method="POST"
enctype="multipart/form-data"
>
<input type="file" name="file" />
<button type="submit">Upload</button>
</form>
<div id="table">
<p>Cassette:</p>
<table border="1" id="table">
<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>
</div>
</body>
</html>