diff options
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 | }); |
