diff --git a/warehouse/templates/item/smalllabel.html b/warehouse/templates/item/smalllabel.html new file mode 100644 index 0000000000000000000000000000000000000000..1c7e673cc811633dfc490760d91be3da10e50e8a --- /dev/null +++ b/warehouse/templates/item/smalllabel.html @@ -0,0 +1,67 @@ +<!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>