2020-04-14 11:07:07 +02:00
<!DOCTYPE html>
<html>
2020-04-24 22:10:49 +02:00
<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>
2023-02-04 23:15:11 +01:00
{% include ( "label_system/labels/label_style.css.twig" ) %}
2023-07-02 03:28:17 +02:00
{# We must not escape it here, as the string might contain ", which would be escaped. As user can control the whole HTML, XSS is not really a problem here. #}
{{ options .additionalCss | raw }}
2020-04-24 22:10:49 +02:00
</style>
</head>
<body>
{% for element in elements %}
2022-09-25 02:57:32 +02:00
<div class="page">
2023-06-12 23:39:30 +02:00
{% if options .barcodeType .none %}
2023-02-04 23:15:11 +01:00
{% include "label_system/labels/label_page_none.html.twig" %}
2023-06-12 23:39:30 +02:00
{% elseif options .barcodeType .is2D ( ) %}
2023-02-04 23:15:11 +01:00
{% include "label_system/labels/label_page_qr.html.twig" %}
2023-06-12 23:39:30 +02:00
{% elseif options .barcodeType .is1D ( ) %}
2023-02-04 23:15:11 +01:00
{% include "label_system/labels/label_page_1d.html.twig" %}
2020-04-24 22:10:49 +02:00
{% endif %}
</div>
{% endfor %}
</body>
2020-04-14 11:07:07 +02:00
</html>