Implemented custom templates by inventory type using PrinterTemplate object.
[htsworkflow.git] / htsworkflow / frontend / templates / inventory / hard_drive_shell.zpl
1 ^FX=========================
2 ^FX 3"x3" Label
3 ^FX=========================
4 ^XA
5
6
7 ^FX======== Left Side ===========
8
9 ^FX------------
10 ^FX ^LH changes the 0,0 point of all subsequent location references
11 ^FX------------
12
13 ^LH0,50
14
15 ^FX ---Header---
16
17 ^FO25,0
18 ^CF0,50
19 ^FB250,2,,C
20 ^FD{{ item.barcode_id }}^FS
21
22 ^FX ---Column 1: Flowcells---
23
24 ^FX-----------------
25 ^FX FB command for automatic text formatting:
26 ^FX ^FB[dot width of area], [max # of lines], [change line spacing], [justification: L, C, R, J], [hanging indent]
27 ^FX-----------------
28
29 ^CF0,30,30
30 ^FO75,125
31 ^FB275,19,,L
32 ^FD{% for flowcell in flowcell_id_list %}{{ flowcell }}{% if not forloop.last %}\&{% endif %}{% endfor %}^FS
33 ^FX ---Date---
34
35 ^FO0,725
36 ^CF0,35
37 ^FB300,2,,C
38 ^FD{{ oldest_rundate|date:"YMd" }} - {{ latest_rundate|date:"YMd" }}^FS
39
40 ^FX ---Barcode---
41
42 ^FO135,795
43 ^BXN,3,200^FDinvb|{{ item.barcode_id }}^FS
44
45 ^FX======== Right Side ===========
46
47 ^LH300,60
48
49 ^FX ---Header---
50
51 ^FO0,0
52 ^CF0,50
53 ^FB600,2,,C
54 ^FD{{ barcode_id }}^FS
55
56 ^FX ---Dividing line---
57
58 ^FX---------------
59 ^FX GB command:
60 ^FX ^GB[box width], [box height], [border thickness], [color: B, W], [corner rounding: 0-8]^FS
61 ^FX---------------
62
63 ^FO0,100
64 ^GB0,600,10^FS
65
66 ^FX ---Column 2: Libraries 1-20---
67
68 ^CF0,30,30
69 ^FO75,100
70 ^FB100,20,,L
71 ^FD{% for lib_id in library_id_list_1_to_20 %}{{ lib_id }}{% if not forloop.last %}\&{% endif %}{% endfor %}^FS
72
73 ^FX ---Column 3: Libraries 21-40---
74
75 ^CF0,30,30
76 ^FO200,100
77 ^FB100,20,,L
78 ^FD{% for lib_id in library_id_list_21_to_40 %}{{ lib_id }}{% if not forloop.last %}\&{% endif %}{% endfor %}^FS
79
80 ^FX ---Column 4: Libraries 41-60---
81
82 ^CF0,30,30
83 ^FO325,100
84 ^FB100,20,,L
85 ^FD{% for lib_id in library_id_list_41_to_60 %}{{ lib_id }}{% if not forloop.last %}\&{% endif %}{% endfor %}^FS
86
87 ^FX ---Column 5: Libraries 61-80---
88
89 ^CF0,30,30
90 ^FO450,100
91 ^FB100,20,,L
92 ^FD{% for lib_id in library_id_list_61_to_80 %}{{ lib_id }}{% if not forloop.last %}\&{% endif %}{% endfor %}^FS
93
94 ^FX ---Date---
95
96 ^FO0,715
97 ^CF0,35
98 ^FB600,2,,C
99 ^FDRun Dates: {{ oldest_rundate|date:"YMd" }}-{{ latest_rundate|date:"YMd" }}^FS
100
101 ^FX ---Barcode---
102
103 ^FO255,785
104 ^BXN,3,200^FDinvb|{{ item.barcode_id }}^FS
105
106 ^LH0,0
107 ^FX ---End---
108 ^XZ