blob: b0a2de2130a1cd0e185f1e7723ad84c39631d2db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>Thermoprint</title>
<link rel="stylesheet" type="text/css" href="static/style.css" />
<script src="haskell.js"></script>
<script src="static/tabs.js"></script>
<script type="text/javascript" charset="utf-8">
Haskell.initFFI();
</script>
</head>
<body>
<p id="javascriptError" class="error fatal">
Need javascript to function.
</p>
<div class="tabs">
<ul class="tabLinks" id="tabLinks">
<li class="active"><a href="#editor">Editor</a></li>
<li><a href="#drafts">Drafts</a></li>
<li><a href="#printers">Printers & Jobs</a></li>
<li id="errors-tab" style="display:none;"><a href="#errors">Errors</a></li>
</ul>
<div class="tabContent" id="tabContent">
<div class="tab active" id="editor">
<!-- <label id="titleLabel" for="editorTitle">Title</label> -->
<input id="saveDraft" type="checkbox" checked="checked" /><label for="saveDraft">Save as Draft</label>
<input id="editorTitle" />
<textarea id="editorText"></textarea>
<span id="bbcodeStatus"></span>
<span id="editorStatus">Not connected to server</span>
<div class="table" style="width:100%">
<div class="tr">
<div class="editorButtonContainer tc">
<button class="editorButton" id="saveButton">Save</button>
</div>
<div class="editorButtonContainer tc">
<button class="editorButton" id="printButton">Print</button>
</div>
<div class="editorButtonContainer tc">
<button class="editorButton" id="discardButton">Save & Clear</button>
</div>
</div>
</div>
</div>
<div class="tab" id="drafts" style="text-align:center;">
<table style="width:100%;" id="draftList">
<thead>
<tr>
<td style="width:5em;">Id</td>
<td>Title</td>
<td style="width:12em;">Actions</td>
</tr>
</thead>
<tbody id="draftListBody"></tbody>
<tfoot>
<tr>
<td colspan="2" style="border-style:none;"></td>
<td>
<!-- <input id="allowDeletion" type="checkbox" /><label for="allowDeletion">Allow Deletion</label> -->
<button id="enactDeletion">Delete marked</button>
</td>
</tr>
</tfoot>
</table>
</div>
<div class="tab" id="printers" style="text-align:center;">
<table style="width:100%;" id="printerList">
<thead>
<tr>
<td style="width:10em;">Printer Id</td>
<td style="width:10em;">Job Id</td>
<td style="width:20em;">Created</td>
<td>Status</td>
<td style="width:20em;">Actions</td>
</tr>
</thead>
<tbody id="printerListBody"></tbody>
<tfoot>
<tr>
<td colspan="4" style="border-style:none;"></td>
<td>
<input id="autoselectPrinter" type="radio" name="printer" value="Nothing" checked="checked" /><label for="autoselectPrinter">Have server select printer</label>
</td>
</tr>
<tr>
<td colspan="4" style="border-style:none;"></td>
<td>
<!-- <input id="allowAbortion" type="checkbox" /><label for="allowAbortion">Allow Abortion</label> -->
<button id="enactAbortion">Abort marked</button>
</td>
</tr>
</tfoot>
</table>
</div>
<ul class="tab" id="errors">
</ul>
</div>
</body>
</html>
|