summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2015-03-08 17:10:52 +0100
committerSebastian Reichel <sre@ring0.de>2015-03-08 17:10:52 +0100
commit064552cadcaf96ad9d22aaee7103e1e59826e5bf (patch)
treeb37f395f65d13cd4778377586fbc4127769f19f1 /templates
parentcc8960519c0a1b625c4a4073920277f39c848d4c (diff)
downloadserial-barcode-scanner-064552cadcaf96ad9d22aaee7103e1e59826e5bf.tar.bz2
web: cashbox: try makeing update function foolproof and add history
Diffstat (limited to 'templates')
-rw-r--r--templates/cashbox/index.html19
-rw-r--r--templates/css/base.css8
2 files changed, 22 insertions, 5 deletions
diff --git a/templates/cashbox/index.html b/templates/cashbox/index.html
index 1466272..dc5e561 100644
--- a/templates/cashbox/index.html
+++ b/templates/cashbox/index.html
@@ -1,11 +1,20 @@
-Current Cashbox Status: <input name"status" type="number" readonly="readonly" value="{{{CASHBOX_STATUS}}}"/>
+<legend>Current Cashbox Status</legend>
+
+<input name"status" type="number" readonly="readonly" value="{{{CASHBOX_STATUS}}}"/>
<form action="/cashbox/add" class="form-horizontal">
- <legend>Cashbox Balance/Withdrawal/Deposit</legend>
+ <legend>Update Cashbox</legend>
<select name="type" size="1">
- <option value="loss">Balance (Loss)</option>
- <option value="user">Withdrawal / Deposit</option>
+ <option value="loss">Loss (Money is missing from the cashbox)</option>
+ <option value="withdrawal">Withdrawal (You removed money from the cashbox)</option>
+ <option value="donation">Donation (Cashbox has more money, than there should be)</option>
+ <option value="deposit">Deposit (You added money to the cashbox)</option>
</select>
- <input class="input-medium" name="amount" type="number" placeholder="Amount" />
+ <input class="input-medium" name="amount" type="number" placeholder="Amount (in Cent)" />
<button type="submit" class="btn btn-primary"><i class="icon-plus"></i></button>
+ <legend>History (last ten updates)</legend>
+ <table class="table table-bordered table-striped table-hover table-condensed table-nonfluid">
+ <tr><td>Date &amp; Time</td><td>Name</td><td>Amount</td></tr>
+ {{{CASHBOX_HISTORY}}}
+ </table>
</form>
diff --git a/templates/css/base.css b/templates/css/base.css
index 48407c8..3b30711 100644
--- a/templates/css/base.css
+++ b/templates/css/base.css
@@ -67,3 +67,11 @@
.hidden {
display: none;
}
+
+.table-nonfluid {
+ width: auto !important;
+}
+
+.text-right {
+ text-align: right !important;
+}