summaryrefslogtreecommitdiffstats
path: root/data/templates/cashbox/index.html
diff options
context:
space:
mode:
authorholger <holgercremer@gmail.com>2020-01-04 22:06:17 +0100
committerGitHub <noreply@github.com>2020-01-04 22:06:17 +0100
commit9a21b5c0d0f84bd6c0c626173d19441738fefb13 (patch)
treea4c7dc3565470b482bcb17b104a33d5a3da4af10 /data/templates/cashbox/index.html
parent4dcf459bfb1f71adf246e74aba242f633331448c (diff)
parent8d857037028ecc7380c3b43ac87f069b1c15c68e (diff)
downloadserial-barcode-scanner-9a21b5c0d0f84bd6c0c626173d19441738fefb13.tar.bz2
Merge pull request #52 from smilix/master
some fixes for the details view
Diffstat (limited to 'data/templates/cashbox/index.html')
-rw-r--r--data/templates/cashbox/index.html18
1 files changed, 17 insertions, 1 deletions
diff --git a/data/templates/cashbox/index.html b/data/templates/cashbox/index.html
index 4a088b6..9f5c81b 100644
--- a/data/templates/cashbox/index.html
+++ b/data/templates/cashbox/index.html
@@ -27,4 +27,20 @@
<tr><td>Date &amp; Time</td><td>Name</td><td>Amount</td></tr>
{{{CASHBOX_HISTORY}}}
</table>
-<a href="/cashbox/details">Details for a specific month</a>
+
+<legend>Details</legend>
+<div class="form-inline">
+ <div class="form-group">
+ <input id="yearDetail" class="form-control" type="number" placeholder="Year"/>
+ <input id="monthDetail" class="form-control" type="number" placeholder="Month"/>
+ <button class="form-control btn btn-default" onclick="showDetails()"></span>Show Details</button>
+ </div>
+</div>
+
+<script>
+function showDetails() {
+ var year = document.getElementById("yearDetail").value;
+ var month = document.getElementById("monthDetail").value;
+ location.href = location.pathname + "/details/" + year + "/" + month;
+}
+</script>