Skip to content
Snippets Groups Projects
Commit 90ac55e8 authored by Julian's avatar Julian
Browse files

Forgot template

parent ae94995e
No related branches found
No related tags found
No related merge requests found
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Label "{{ item.name }}"</title>
<style>
@page {
size: 62mm 30mm;
margin: 4mm;
}
html {
width: 100%;
height: 100%;
font-family: Arial, Helvetica, san serif;
{% if 'debug' in request.args %}outline: black solid 1px;{% endif %}
}
#qrcode {
{% if 'debug' in request.args %}outline: red solid 2px;{% endif %}
position: absolute;
top: 0mm;
left: 0mm;
right: 32mm;
bottom: 0mm;
}
a {
text-decoration: none;
}
#qrcode > svg {
width: 22mm;
height: 22mm;
}
#details {
{% if 'debug' in request.args %}outline: blue solid 2px;{% endif %}
position: absolute;
top: -1mm;
left: 26mm;
right: 0mm;
bottom: -1mm;
hyphens: auto;
}
#details-bottom {
position: absolute;
bottom: 0mm;
}
small {
font-size: 12px;
}
</style>
</head>
<body>
<a id="qrcode" href="{{ url_for('qrcode_url', code=item.qr_code, _external=True) }}">
{{ url_for('qrcode_url', code=item.qr_code, _external=True)|qrcode_svg }}
</a>
<div id="details" lang="de">
<div id="details-top">
<small>
{{ item.name }}<br>
ID: {{ item.id }}
</small>
</div>
<div id="details-bottom">
CCCV GmbH
</div>
</div>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment