8
8
9
9
< body class ="p-0 m-0 ">
10
10
< div class ="card border-0 rounded-0 h-100 w-100 mb-0 ">
11
- < div class ="card-header text-bg-primary rounded-0 ">
11
+ < div id =" panel-head " class ="card-header text-bg-primary rounded-0 " style =" -webkit-app-region: drag; ">
12
12
< img src ="icons/Icon-16-white.png " class ="me-2 ">
13
13
< b > < span class ='panel-printer-title '> Zpl</ span > Printer</ b > - EN Systems</ span >
14
- < button id ="btn-close " type ="button " class ="btn-close float-end " aria-label ="Close "> </ button >
14
+ < button id ="btn-close " type ="button " class ="btn-close float-end " aria-label ="Close " style =" -webkit-app-region: no-drag; " > </ button >
15
15
</ div >
16
16
< div class ="card-body pb-0 mb-0 ">
17
- < nav class ="navbar navbar-light bg-light border rounded pb-1 pt-1 ps-2 pe-2 mb-3 ">
18
- < div class ="d-flex float-start mb-0 ">
19
- < div id ='printer-type ' class ="btn-group invisible " role ="group " aria-label ="Printer Type " style =" width:1px !important; ">
17
+ < nav class ="navbar navbar-light bg-light border rounded pb-0 pt-1 ps-2 pe-2 mb-3 ">
18
+ < div class ="d-flex float-start mb-1 ">
19
+ < div id ='printer-type ' class ="btn-group " role ="group " aria-label ="Printer Type ">
20
20
< input id ="isZpl " name ="printer-type " type ="radio " class ="btn-check " autocomplete ="off ">
21
21
< label class ="btn btn-outline-primary " for ="isZpl " title ="Zpl Printer "> ZPL</ label >
22
22
27
27
< i class ="glyphicon glyphicon-send "> </ i >
28
28
</ button >
29
29
</ div >
30
- < div class ="d-flex float-end mb-0 ">
30
+ < div class ="d-flex float-end mb-1 ">
31
31
< div id ='on_off ' class ="btn-group " role ="group " aria-label ="TCP Socket ">
32
32
< input id ="isOn " name ="tcp-socket " type ="radio " class ="btn-check " autocomplete ="off ">
33
33
< label class ="btn btn-outline-primary " for ="isOn " title ="Start TCP Socket "> ON</ label >
43
43
</ button >
44
44
</ div >
45
45
</ nav >
46
- < div class ="label-container bg-light border rounded overflow-auto " style ="height: 82vh; ">
47
- < div id ="label " class ="position-relative "> </ div >
46
+ < div id ="escpos-container " class ="label-container bg-light border rounded overflow-auto is-esc ">
47
+ < div id ="label-esc " class ="position-relative "> </ div >
48
+ </ div >
49
+ < div id ="zpl-container " class ="label-container bg-light border rounded overflow-auto is-zpl ">
50
+ < div id ="label-zpl " class ="position-relative "> </ div >
48
51
</ div >
49
52
</ div >
50
53
</ div >
51
54
<!-- Notification -->
52
55
< div class ='notifications bottom-left position-fixed w-100 ' style ="z-index: 9999; left: 1px; bottom: 1px; "> </ div >
53
56
<!-- Modals -->
54
- < div class ="modal fade " id ="printer-test " tabindex ="-1 " aria-labelledby ="mdlPrinterTest " aria-hidden ="true ">
57
+ < div class ="modal fade " id ="printer-test " tabindex ="-1 " aria-labelledby ="mdlPrinterTest " aria-hidden ="true " data-bs-backdrop =" static " data-bs-keyboard =" false " >
55
58
< div class ="modal-dialog ">
56
59
< div class ="modal-content ">
57
60
< div class ="modal-header pb-1 pt-1 pe-3 ps-3 ">
58
61
< h5 id ="mdlPrinterTest " class ="modal-title modal-title ">
59
62
< i class ="glyphicon glyphicon-send pe-2 "> </ i >
60
63
< span class ='panel-printer-title '> Zpl</ span > Printer Test
61
64
</ h5 >
62
- < button type ="button " class ="btn-close " data-bs-dismiss ="modal " aria-label ="Close "> </ button >
65
+ < button type ="button " class ="btn-close btn-close-test-md " data-bs-dismiss ="modal " aria-label ="Close "> </ button >
63
66
</ div >
64
67
< form id ="testsForm " class ="mb-0 ">
65
68
< div class ="modal-body ">
@@ -69,29 +72,30 @@ <h5 id="mdlPrinterTest" class="modal-title modal-title">
69
72
</ div >
70
73
</ div >
71
74
< div class ="modal-footer p-1 ">
72
- < button id ="btn-close-test-md " type ="button " class ="btn btn-secondary " data-bs-dismiss ="modal "> Close</ button >
73
- < button id ="btn-run-test-hw " type ="button " class ="btn btn-success "> Hello Word</ button >
74
- < button id ="btn-run-test " type ="submit " class ="btn btn-primary "> Print</ button >
75
+ < button id ="btn-close-test-md " type ="button " class ="btn btn-secondary btn-close-test-md " data-bs-dismiss ="modal "> < i class ="glyphicon glyphicon-remove "> </ i > Close</ button >
76
+ < button id ="btn-run-test-hw " type ="button " class ="btn btn-success "> < i class ="glyphicon glyphicon-star "> </ i > Hello Word</ button >
77
+ < button id ="btn-raw-file " type ="button " class ="btn btn-info "> < i class ="glyphicon glyphicon-file "> </ i > Raw File</ button >
78
+ < button id ="btn-run-test " type ="submit " class ="btn btn-primary "> < i class ="glyphicon glyphicon-print "> </ i > Print</ button >
75
79
</ div >
76
80
</ form >
77
81
</ div >
78
82
</ div >
79
83
</ div >
80
- < div class ="modal fade " id ="settings-window " tabindex ="-1 " aria-labelledby ="mdlLabelSettings " aria-hidden ="true ">
84
+ < div class ="modal fade " id ="settings-window " tabindex ="-1 " aria-labelledby ="mdlLabelSettings " aria-hidden ="true " data-bs-backdrop =" static " data-bs-keyboard =" false " >
81
85
< div class ="modal-dialog ">
82
86
< div class ="modal-content ">
83
87
< div class ="modal-header pb-1 pt-1 pe-3 ps-3 ">
84
88
< h5 id ="mdlPrinterTest " class ="modal-title modal-title ">
85
89
< i class ="glyphicon glyphicon-cog pe-2 "> </ i >
86
90
< span class ='panel-printer-title '> Zpl</ span > Printer Settings
87
91
</ h5 >
88
- < button type ="button " class ="btn-close " data-bs-dismiss ="modal " aria-label ="Close "> </ button >
92
+ < button type ="button " class ="btn-close btn-close-save-settings " data-bs-dismiss ="modal " aria-label ="Close "> </ button >
89
93
</ div >
90
94
< form id ="configsForm " class ="mb-0 ">
91
95
< div class ="modal-body ps-2 pe-2 ">
92
96
< fieldset class ="border rounded p-2 mb-1 ">
93
97
< legend class ="float-none w-auto px-2 mb-0 fs-6 fw-semibold "> Printer Properties</ legend >
94
- < div class ="row mb-2 ">
98
+ < div class ="row mb-2 is-zpl ">
95
99
< div class ="col-7 ">
96
100
< div class ="form-floating ">
97
101
< select id ="density " class ="form-select " aria-label ="Print Density ">
@@ -166,14 +170,20 @@ <h5 id="mdlPrinterTest" class="modal-title modal-title">
166
170
< label class ="form-check-label " for ="saveLabels "> Save labels</ label >
167
171
</ div >
168
172
</ span >
169
- < div class ="form-floating ">
173
+ < div class ="form-floating is-zpl ">
170
174
< select id ="filetype " class ="form-select " aria-label ="File Type ">
171
175
< option value ="1 "> PNG</ option >
172
176
< option value ="2 "> PDF</ option >
173
177
< option value ="3 "> RAW</ option >
174
178
</ select >
175
179
< label for ="filetype "> File Type</ label >
176
180
</ div >
181
+ < div class ="form-floating is-esc ">
182
+ < select id ="filetype-dump " class ="form-select " aria-label ="File Type " disabled >
183
+ < option value ="3 "> RAW</ option >
184
+ </ select >
185
+ < label for ="filetype-dump "> File Type</ label >
186
+ </ div >
177
187
</ div >
178
188
</ div >
179
189
</ div >
@@ -187,8 +197,8 @@ <h5 id="mdlPrinterTest" class="modal-title modal-title">
187
197
</ fieldset >
188
198
</ div >
189
199
< div class ="modal-footer p-1 ">
190
- < button id ="btn-close-save-settings " type ="button " class ="btn btn-secondary " data-bs-dismiss ="modal "> Close</ button >
191
- < button id ="btn-save " type ="submit " class ="btn btn-primary "> Save changes</ button >
200
+ < button id ="btn-close-save-settings " type ="button " class ="btn btn-secondary btn-close-save-settings " data-bs-dismiss ="modal "> < i class =" glyphicon glyphicon-remove " > </ i > Close</ button >
201
+ < button id ="btn-save " type ="submit " class ="btn btn-primary "> < i class =" glyphicon glyphicon-floppy-disk " > </ i > Save changes</ button >
192
202
</ div >
193
203
</ form >
194
204
</ div >
0 commit comments