diff options
author | Holger Cremer <HolgerCremer@gmail.com> | 2020-01-04 21:56:53 +0100 |
---|---|---|
committer | Holger Cremer <HolgerCremer@gmail.com> | 2020-01-04 21:56:53 +0100 |
commit | 5094fc329619895583227de6b9f8bb0242503d07 (patch) | |
tree | f6f3701892fcf6389482223e2e96ac8cafe64a02 /data/templates/cashbox/index.html | |
parent | d92aa9d79a3f80557119b660f7191e96b7d79878 (diff) | |
download | serial-barcode-scanner-5094fc329619895583227de6b9f8bb0242503d07.tar.bz2 |
improves the cashbox detail view
Diffstat (limited to 'data/templates/cashbox/index.html')
-rw-r--r-- | data/templates/cashbox/index.html | 18 |
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 & 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> |