diff options
author | Sebastian Reichel <sre@ring0.de> | 2015-03-08 17:10:52 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2015-03-08 17:10:52 +0100 |
commit | 064552cadcaf96ad9d22aaee7103e1e59826e5bf (patch) | |
tree | b37f395f65d13cd4778377586fbc4127769f19f1 /templates/cashbox/index.html | |
parent | cc8960519c0a1b625c4a4073920277f39c848d4c (diff) | |
download | serial-barcode-scanner-064552cadcaf96ad9d22aaee7103e1e59826e5bf.tar.bz2 |
web: cashbox: try makeing update function foolproof and add history
Diffstat (limited to 'templates/cashbox/index.html')
-rw-r--r-- | templates/cashbox/index.html | 19 |
1 files changed, 14 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 & Time</td><td>Name</td><td>Amount</td></tr> + {{{CASHBOX_HISTORY}}} + </table> </form> |