mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-22 11:54:41 +02:00
Allow to generate multiple labels at once (multiple pages in 1 PDF file).
This commit is contained in:
parent
4c5820ee22
commit
e89cc4bb01
12 changed files with 389 additions and 228 deletions
|
@ -11,6 +11,11 @@
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
{{ lines | raw }}
|
||||
{% 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>
|
||||
</html>
|
1
templates/LabelSystem/labels/label_page.html.twig
Normal file
1
templates/LabelSystem/labels/label_page.html.twig
Normal file
|
@ -0,0 +1 @@
|
|||
{{ element.lines | raw }}
|
Loading…
Add table
Add a link
Reference in a new issue