mannaggianastri/templates/upload.html

50 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2024-06-14 17:39:50 +02:00
<html>
<head>
2024-06-15 12:12:39 +02:00
<meta charset="utf-8" />
2024-06-14 17:39:50 +02:00
<title>{{ title }}</title>
2024-06-15 12:12:39 +02:00
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<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
<body>
2024-06-15 12:12:39 +02:00
<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>
2024-06-14 19:52:38 +02:00
2024-06-15 12:12:39 +02:00
<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>
2024-06-14 19:17:23 +02:00
</body>
2024-06-14 17:39:50 +02:00
</html>