Generating pritable labels

This commit is contained in:
2018-10-17 15:14:02 +02:00
parent 5d6db5aea5
commit 4176c1afcd
4 changed files with 65 additions and 5 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
{% block content %}
<form action=/generate method="post">
How many?:<br />
<input type="number" name="howmany" value="20"/><br />
<input type="number" name="howmany" value="16"/><br />
<button type="submit" class="graybar" >Generate </button><br />
Note: It is best to print the generated codes immediatly from the result of this generation.
</form>
+28
View File
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<title>Printing QR labels</title>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='printstyle.css') }}">
</head>
<body>
<table>
<tbody>
{% for row in codes %}
<tr>
{% for code in row %}
<td>
<img src="{{codegenURL}}{{code}}{{format}}" />
<p>ELAB KNOWLEDGE SYSTEM</p>
<p>{{systemURL}}{{code}}</p>
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</body>
</html>