mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix dimensions for label templates (#3578)
- Disable localization in certain areas - Different localization settings could mess with label generation
This commit is contained in:
parent
4c22110c76
commit
c8de2efd9d
@ -1,10 +1,13 @@
|
|||||||
|
{% load l10n %}
|
||||||
{% load report %}
|
{% load report %}
|
||||||
{% load barcode %}
|
{% load barcode %}
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<style>
|
<style>
|
||||||
@page {
|
@page {
|
||||||
|
{% localize off %}
|
||||||
size: {{ width }}mm {{ height }}mm;
|
size: {{ width }}mm {{ height }}mm;
|
||||||
|
{% endlocalize %}
|
||||||
{% block margin %}
|
{% block margin %}
|
||||||
margin: 0mm;
|
margin: 0mm;
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{% extends "label/label_base.html" %}
|
{% extends "label/label_base.html" %}
|
||||||
|
|
||||||
|
{% load l10n %}
|
||||||
{% load barcode %}
|
{% load barcode %}
|
||||||
|
|
||||||
{% block style %}
|
{% block style %}
|
||||||
@ -8,15 +9,19 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
left: 0mm;
|
left: 0mm;
|
||||||
top: 0mm;
|
top: 0mm;
|
||||||
|
{% localize off %}
|
||||||
height: {{ height }}mm;
|
height: {{ height }}mm;
|
||||||
width: {{ height }}mm;
|
width: {{ height }}mm;
|
||||||
|
{% endlocalize %}
|
||||||
}
|
}
|
||||||
|
|
||||||
.part {
|
.part {
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
display: inline;
|
display: inline;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
{% localize off %}
|
||||||
left: {{ height }}mm;
|
left: {{ height }}mm;
|
||||||
|
{% endlocalize %}
|
||||||
top: 2mm;
|
top: 2mm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{% extends "label/label_base.html" %}
|
{% extends "label/label_base.html" %}
|
||||||
|
|
||||||
|
{% load l10n %}
|
||||||
{% load barcode %}
|
{% load barcode %}
|
||||||
|
|
||||||
{% block style %}
|
{% block style %}
|
||||||
@ -8,15 +9,19 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
left: 0mm;
|
left: 0mm;
|
||||||
top: 0mm;
|
top: 0mm;
|
||||||
|
{% localize off %}
|
||||||
height: {{ height }}mm;
|
height: {{ height }}mm;
|
||||||
width: {{ height }}mm;
|
width: {{ height }}mm;
|
||||||
|
{% endlocalize %}
|
||||||
}
|
}
|
||||||
|
|
||||||
.part {
|
.part {
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
display: inline;
|
display: inline;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
{% localize off %}
|
||||||
left: {{ height }}mm;
|
left: {{ height }}mm;
|
||||||
|
{% endlocalize %}
|
||||||
top: 2mm;
|
top: 2mm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{% extends "label/label_base.html" %}
|
{% extends "label/label_base.html" %}
|
||||||
|
|
||||||
|
{% load l10n %}
|
||||||
{% load barcode %}
|
{% load barcode %}
|
||||||
|
|
||||||
{% block style %}
|
{% block style %}
|
||||||
@ -8,8 +9,10 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
left: 0mm;
|
left: 0mm;
|
||||||
top: 0mm;
|
top: 0mm;
|
||||||
|
{% localize off %}
|
||||||
height: {{ height }}mm;
|
height: {{ height }}mm;
|
||||||
width: {{ height }}mm;
|
width: {{ height }}mm;
|
||||||
|
{% endlocalize %}
|
||||||
}
|
}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{% extends "label/label_base.html" %}
|
{% extends "label/label_base.html" %}
|
||||||
|
|
||||||
|
{% load l10n %}
|
||||||
{% load barcode %}
|
{% load barcode %}
|
||||||
|
|
||||||
{% block style %}
|
{% block style %}
|
||||||
@ -8,8 +9,10 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
left: 0mm;
|
left: 0mm;
|
||||||
top: 0mm;
|
top: 0mm;
|
||||||
|
{% localize off %}
|
||||||
height: {{ height }}mm;
|
height: {{ height }}mm;
|
||||||
width: {{ height }}mm;
|
width: {{ height }}mm;
|
||||||
|
{% endlocalize %}
|
||||||
}
|
}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{% extends "label/label_base.html" %}
|
{% extends "label/label_base.html" %}
|
||||||
|
|
||||||
|
{% load l10n %}
|
||||||
{% load barcode %}
|
{% load barcode %}
|
||||||
|
|
||||||
{% block style %}
|
{% block style %}
|
||||||
@ -8,15 +9,19 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
left: 0mm;
|
left: 0mm;
|
||||||
top: 0mm;
|
top: 0mm;
|
||||||
|
{% localize off %}
|
||||||
height: {{ height }}mm;
|
height: {{ height }}mm;
|
||||||
width: {{ height }}mm;
|
width: {{ height }}mm;
|
||||||
|
{% endlocalize %}
|
||||||
}
|
}
|
||||||
|
|
||||||
.loc {
|
.loc {
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
display: inline;
|
display: inline;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
{% localize off %}
|
||||||
left: {{ height }}mm;
|
left: {{ height }}mm;
|
||||||
|
{% endlocalize %}
|
||||||
top: 2mm;
|
top: 2mm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user