summaryrefslogtreecommitdiffstats
path: root/templates/cashbox/selection.html
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2015-04-07 04:06:56 +0200
committerSebastian Reichel <sre@ring0.de>2015-04-07 04:06:56 +0200
commit25298f913cb3c33ed0702166927a1a3c25f53900 (patch)
tree9e59baddecf55461a5571831f9773cdb77b8bd61 /templates/cashbox/selection.html
parent20afb9ff0575eeb84bb6b00b0d9dfcab001c3127 (diff)
downloadserial-barcode-scanner-25298f913cb3c33ed0702166927a1a3c25f53900.tar.bz2
cashbox: add page with details
Diffstat (limited to 'templates/cashbox/selection.html')
-rw-r--r--templates/cashbox/selection.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/cashbox/selection.html b/templates/cashbox/selection.html
new file mode 100644
index 0000000..e15ee75
--- /dev/null
+++ b/templates/cashbox/selection.html
@@ -0,0 +1,17 @@
+<h1>Cashbox Account</h1>
+
+<script>
+function onSubmit() {
+ d = document.getElementsByName("date")[0].value
+ if (d.indexOf("-") > 0) {
+ var split = d.split("-")
+ var uri = location.protocol + '//' + location.host + location.pathname + "/" + split[0] + "/" + split[1]
+ self.location = uri;
+ }
+}
+</script>
+
+<form>
+ <input type="month" name="date" />
+ <input type="button" value="Go" onclick="onSubmit()" />
+</form>