diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-02-25 18:04:49 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-02-25 18:04:49 +0100 |
commit | f515803694d7f8430b064f16a5a923b09ba70650 (patch) | |
tree | 1e5104f784e28a41a4d030e23e0841bb1173cb22 /webgui/data | |
parent | e6e3823982cb9755b7cb4727fb08171eed5b4332 (diff) | |
download | thermoprint-f515803694d7f8430b064f16a5a923b09ba70650.tar thermoprint-f515803694d7f8430b064f16a5a923b09ba70650.tar.gz thermoprint-f515803694d7f8430b064f16a5a923b09ba70650.tar.bz2 thermoprint-f515803694d7f8430b064f16a5a923b09ba70650.tar.xz thermoprint-f515803694d7f8430b064f16a5a923b09ba70650.zip |
Job/Printer list
Diffstat (limited to 'webgui/data')
-rw-r--r-- | webgui/data/index.html | 32 | ||||
-rw-r--r-- | webgui/data/style.css | 4 | ||||
-rw-r--r-- | webgui/data/tabs.js | 2 |
3 files changed, 35 insertions, 3 deletions
diff --git a/webgui/data/index.html b/webgui/data/index.html index 3bdd047..e4a6c63 100644 --- a/webgui/data/index.html +++ b/webgui/data/index.html | |||
@@ -18,7 +18,7 @@ | |||
18 | <ul class="tab-links"> | 18 | <ul class="tab-links"> |
19 | <li class="active"><a href="#editor">Editor</a></li> | 19 | <li class="active"><a href="#editor">Editor</a></li> |
20 | <li><a href="#drafts">Drafts</a></li> | 20 | <li><a href="#drafts">Drafts</a></li> |
21 | <li><a href="#queue">Queue</a></li> | 21 | <li><a href="#printers">Printers & Jobs</a></li> |
22 | <li id="errors-tab" style="display:none;"><a href="#errors">Errors</a></li> | 22 | <li id="errors-tab" style="display:none;"><a href="#errors">Errors</a></li> |
23 | </ul> | 23 | </ul> |
24 | 24 | ||
@@ -44,6 +44,7 @@ | |||
44 | </div> | 44 | </div> |
45 | </div> | 45 | </div> |
46 | </div> | 46 | </div> |
47 | |||
47 | <div class="tab" id="drafts" style="text-align:center;"> | 48 | <div class="tab" id="drafts" style="text-align:center;"> |
48 | <table style="width:100%;" id="draftList"> | 49 | <table style="width:100%;" id="draftList"> |
49 | <thead> | 50 | <thead> |
@@ -65,8 +66,33 @@ | |||
65 | </table> | 66 | </table> |
66 | </div> | 67 | </div> |
67 | 68 | ||
68 | <div class="tab" id="queue"> | 69 | <div class="tab" id="printers" style="text-align:center;"> |
69 | Blub. | 70 | <table style="width:100%;" id="printerList"> |
71 | <thead> | ||
72 | <tr> | ||
73 | <td style="width:10em;">Printer Id</td> | ||
74 | <td style="width:10em;">Job Id</td> | ||
75 | <td style="width:20em;">Created</td> | ||
76 | <td>Status</td> | ||
77 | <td style="width:20em;">Actions</td> | ||
78 | </tr> | ||
79 | </thead> | ||
80 | <tbody id="printerListBody"></tbody> | ||
81 | <tfoot> | ||
82 | <tr> | ||
83 | <td colspan="4" style="border-style:none;"></td> | ||
84 | <td> | ||
85 | <input id="autoselectPrinter" type="radio" name="printer" value="Nothing" checked="checked" /><label for="autoselectPrinter">Have server select printer</label> | ||
86 | </td> | ||
87 | </tr> | ||
88 | <tr> | ||
89 | <td colspan="4" style="border-style:none;"></td> | ||
90 | <td> | ||
91 | <input id="allowAbortion" type="checkbox" /><label for="allowAbortion">Allow Abortion</label> | ||
92 | </td> | ||
93 | </tr> | ||
94 | </tfoot> | ||
95 | </table> | ||
70 | </div> | 96 | </div> |
71 | 97 | ||
72 | <ul class="tab" id="errors"> | 98 | <ul class="tab" id="errors"> |
diff --git a/webgui/data/style.css b/webgui/data/style.css index 9946208..6ab1704 100644 --- a/webgui/data/style.css +++ b/webgui/data/style.css | |||
@@ -89,6 +89,10 @@ tfoot tr:first-child td { | |||
89 | width:6em; | 89 | width:6em; |
90 | } | 90 | } |
91 | 91 | ||
92 | tr.focused td { | ||
93 | background-color:#d0d0d0; | ||
94 | } | ||
95 | |||
92 | /*----- Tabs -----*/ | 96 | /*----- Tabs -----*/ |
93 | .tabs { | 97 | .tabs { |
94 | display:block; | 98 | display:block; |
diff --git a/webgui/data/tabs.js b/webgui/data/tabs.js index 1d178d9..d3263c6 100644 --- a/webgui/data/tabs.js +++ b/webgui/data/tabs.js | |||
@@ -7,6 +7,8 @@ jQuery(document).ready(function() { | |||
7 | 7 | ||
8 | // Change/remove current tab to active | 8 | // Change/remove current tab to active |
9 | jQuery(this).parent('li').addClass('active').siblings().removeClass('active'); | 9 | jQuery(this).parent('li').addClass('active').siblings().removeClass('active'); |
10 | |||
11 | jQuery('.focused').removeClass('focused'); | ||
10 | 12 | ||
11 | e.preventDefault(); | 13 | e.preventDefault(); |
12 | }); | 14 | }); |