blob: af780bdacc6654729aa177f18eeb5646802e690a (
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
|
<!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="tab-links">
<li class="active"><a href="#editor">Editor</a></li>
<li><a href="#queue">Queue</a></li>
<li id="errors-tab" style="display:none;"><a href="#errors">Errors</a></li>
</ul>
<div class="tab-content">
<div class="tab active" id="editor">
<div class="table" style="width:100%">
<div class="tr">
<h1 class="tc">Current Draft</h1>
<h1 class="tc">Saved Drafts</h1>
</div>
<div class="tr">
<div id="currentDraft" class="tc">
<!-- <label id="titleLabel" for="editorTitle">Title</label> -->
<input id="editorTitle" />
<textarea id="editorText"></textarea>
<span id="bbcodeStatus"></span>
<span id="editorStatus">Not connected to server</span>
<div class="table">
<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">Discard</button>
</div>
</div>
</div>
</div>
<div class="tc" style="text-align:center;">
<input id="allowDeletion" type="checkbox" /><label for="allowDeletion">Allow Deletion</label>
<table id="draftList">
<thead>
<tr>
<td>Id</td>
<td>Title</td>
<td>Actions</td>
</tr>
</thead>
<tbody id="draftListBody"></tbody>
</table>
</div>
</div>
</div>
</div>
<div class="tab" id="queue">
Blub.
</div>
<ul class="tab" id="errors">
</ul>
</div>
</body>
</html>
|