Added basic support for label barcodes (C39 and QR).

This commit is contained in:
Jan Böhmer 2020-04-24 22:10:49 +02:00
parent a7cfe7b42f
commit 6bd3ad6138
12 changed files with 620 additions and 46 deletions

View file

@ -1,21 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{{ meta_title }}</title>
<meta name="author" content="{{ partdb_title }}">
<meta name="description" content="Label for {{ meta_title }}">
<meta name="keywords" content="Part-DB, Label, Barcode">
<style>
{% include("LabelSystem/labels/label_style.css.twig") %}
</style>
</head>
<body>
{% for element in elements %}
{% include "LabelSystem/labels/label_page.html.twig" %}
{% if not loop.last %}
<div style="page-break-after: always;"></div>
{% endif %}
{% endfor %}
</body>
<head>
<meta charset="UTF-8">
<title>{{ meta_title }}</title>
<meta name="author" content="{{ partdb_title }}">
<meta name="description" content="Label for {{ meta_title }}">
<meta name="keywords" content="Part-DB, Label, Barcode">
<style>
{% include("LabelSystem/labels/label_style.css.twig") %}
</style>
</head>
<body>
{% for element in elements %}
<div style="page-break-inside: avoid; page-break-before: avoid; {% if not loop.last %}page-break-after: always;{% endif %}">
{% if options.barcodeType == 'none' %}
{% include "LabelSystem/labels/label_page_none.html.twig" %}
{% elseif options.barcodeType == 'qr' %}
{% include "LabelSystem/labels/label_page_qr.html.twig" %}
{% elseif options.barcodeType == 'code39' %}
{% include "LabelSystem/labels/label_page_1d.html.twig" %}
{% endif %}
</div>
{% endfor %}
</body>
</html>