iso7010print/templates/index.html

47 lines
1.1 KiB
HTML
Raw Normal View History

2023-08-16 18:30:07 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
body {
margin: 0 auto;
}
#things {
display: flex;
flex-flow: row wrap;
gap: 5px;
}
.thing {
width: 250px;
border: solid 2px;
}
</style>
</head>
<body>
<h1>ISO7010 Warning Stickers On Demand</h1>
2023-08-17 14:53:55 +01:00
{% for section, ws in ws.items() %}
<h2>{{ section }}</h2>
2023-08-16 18:30:07 +01:00
<div id="things">
{% for w in ws %}
<div class="thing">
<img src="{{ w.url }}" width="100%">
<div>
2023-08-17 14:53:55 +01:00
<div>
{{ w.name }}
</div>
<div>
{{ counts.get(w.name, 0) }}
</div>
2023-08-16 18:30:07 +01:00
<form method="POST">
<button type="submit" name="w" value="{{ w.name }}">Print</button>
</form>
</div>
</div>
{% endfor %}
</div>
2023-08-17 14:53:55 +01:00
{% endfor %}
2023-08-16 18:30:07 +01:00
</body>
</html>