summaryrefslogtreecommitdiffstats
path: root/data/templates
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/cashbox/index.html18
-rw-r--r--data/templates/cashbox/selection.html17
-rw-r--r--data/templates/products/entry.html1
3 files changed, 18 insertions, 18 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>
diff --git a/data/templates/cashbox/selection.html b/data/templates/cashbox/selection.html
deleted file mode 100644
index e15ee75..0000000
--- a/data/templates/cashbox/selection.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<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>
diff --git a/data/templates/products/entry.html b/data/templates/products/entry.html
index 64b2aa4..369da30 100644
--- a/data/templates/products/entry.html
+++ b/data/templates/products/entry.html
@@ -2,6 +2,7 @@
<p>
<table class="table table-bordered table-nonfluid">
<tr><th>EAN</th><td>{{{EAN}}}</td></tr>
+ <tr><th>Aliases</th><td><ul>{{{ALIASES}}}</ul></td></tr>
<tr><th>Name</th><td>{{{NAME}}}</td></tr>
<tr><th>Category</th><td>{{{CATEGORY}}}</td></tr>
<tr><th>Amount</th><td>{{{AMOUNT}}}</td></tr>