aboutsummaryrefslogtreecommitdiff
path: root/webgui/data/index.html
blob: d368fa5919d467795413750216579fcf6c535441 (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
<!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="#drafts">Drafts</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">
	  <!-- <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" 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>
		</td>
	      </tr>
	    </tfoot>
	  </table>
	</div>

	<div class="tab" id="queue">
	  Blub.
	</div>

	<ul class="tab" id="errors">
	</ul>
      </div>
  </body>
</html>