diff options
author | Sebastian Reichel <sre@ring0.de> | 2013-06-15 23:12:26 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2013-06-15 23:12:26 +0200 |
commit | e11d76395ce0ba821f58bfb1956a56f6ffc8494b (patch) | |
tree | c01a24058b017c9f2b36d934e02f3cea5c408fde /templates/cashbox | |
parent | 8504754a40d47b69b0aa1e786f0b1db45405a3fd (diff) | |
download | serial-barcode-scanner-e11d76395ce0ba821f58bfb1956a56f6ffc8494b.tar.bz2 |
web: add cashbox tracking
Diffstat (limited to 'templates/cashbox')
-rw-r--r-- | templates/cashbox/add.html | 17 | ||||
-rw-r--r-- | templates/cashbox/index.html | 11 |
2 files changed, 28 insertions, 0 deletions
diff --git a/templates/cashbox/add.html b/templates/cashbox/add.html new file mode 100644 index 0000000..6e26f00 --- /dev/null +++ b/templates/cashbox/add.html @@ -0,0 +1,17 @@ +<div id="add-successful" class="alert alert-success" style="display: {{{NEW.OK}}};"> + <p>Successfully balanced cashbox:</p> + + <table class="table"> + <tr><th>Type</th><td>{{{TYPE}}}</td></tr> + <tr><th>Amount</th><td>{{{AMOUNT}}}</td></tr> + </table> +</div> + +<div id="add-failed" class="alert alert-error" style="display: {{{NEW.FAIL}}};"> + <h4>Error</h4> + Creating new cashbox balance entry failed. Please make + sure you have sufficient permissions and gave valid + values for type and amount. +</div> + +<a href="/cashbox">Back to cashbox overview</a> diff --git a/templates/cashbox/index.html b/templates/cashbox/index.html new file mode 100644 index 0000000..1466272 --- /dev/null +++ b/templates/cashbox/index.html @@ -0,0 +1,11 @@ +Current Cashbox Status: <input name"status" type="number" readonly="readonly" value="{{{CASHBOX_STATUS}}}"/> + +<form action="/cashbox/add" class="form-horizontal"> + <legend>Cashbox Balance/Withdrawal/Deposit</legend> + <select name="type" size="1"> + <option value="loss">Balance (Loss)</option> + <option value="user">Withdrawal / Deposit</option> + </select> + <input class="input-medium" name="amount" type="number" placeholder="Amount" /> + <button type="submit" class="btn btn-primary"><i class="icon-plus"></i></button> +</form> |