summaryrefslogtreecommitdiff
path: root/templates/transaction.html.tera
diff options
context:
space:
mode:
authorBenedict Börger <benedict@0xb8000.de>2019-04-14 20:06:27 +0200
committerBenedict Börger <benedict@0xb8000.de>2019-04-14 20:06:27 +0200
commit6712b19dbd2d21e5e89ac7a8d748369ea0a4612f (patch)
tree0e6b0d3ab2804d0473eb64db0410a3dcd340462a /templates/transaction.html.tera
parentf28e8a59c781f24ed9399268cc2536aad0cf534d (diff)
[web-fronted] refactoring code
For historic reason, two handlers exists, one for POST and one for GET request. Merge these two to one GET request handler. This handler has optionally three parameteres: * filter: Filters the transactions by the given regex * date_start: Output only transactions after this date * date_end: Output only transactions before this date If more than one parameter is given, all filters must match for a transaction to be printed.
Diffstat (limited to 'templates/transaction.html.tera')
-rw-r--r--templates/transaction.html.tera7
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/transaction.html.tera b/templates/transaction.html.tera
index a1fe899..a39b7e3 100644
--- a/templates/transaction.html.tera
+++ b/templates/transaction.html.tera
@@ -45,19 +45,18 @@
<!-- content -->
<div class="container">
<div class="md-form mt-0" style="padding-top: 20px;">
- <form name="filter" method="post" action="/transactions">
+ <form name="filter" method="get" action="/transactions">
{% if filter == "" %}
<input id="filter" name="filter" class="form-control" type="text" placeholder="Filter">
{% else %}
<input id="filter" name="filter" class="form-control" type="text" value="{{ filter }}">
{% endif %}
<input type="submit" style="visibility: hidden; display: none" />
- </form>
<h6 style="padding-top:5px; visibility: hidden;" id="help" class="text-success">Help: search single rows with: sender=value; logical || and && are also possible</h6>
</div>
<div style="text-align:center; margin: auto; width:100%; padding: 10px;">
- <form method="get" action="/transactions"><input type="month" id="start" name="start" value="{{ date_start }}"> to <input type="month" id="end" name="end" value="{{ date_end }}">
- <input type="submit" value="Show" class="btn btn-light">
+ <input type="month" id="start" name="start" value="{{ date_start }}"> to <input type="month" id="end" name="end" value="{{ date_end }}">
+ <input type="submit" value="Show" class="btn btn-light">
</form>
</div>
<h1>Transactions <small class="text-muted">{{ account_name }}</small></h1>