aboutsummaryrefslogtreecommitdiff
path: root/templates/payment/table
diff options
context:
space:
mode:
Diffstat (limited to 'templates/payment/table')
-rw-r--r--templates/payment/table/search.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/payment/table/search.html b/templates/payment/table/search.html
index 9fedb78..3516da8 100644
--- a/templates/payment/table/search.html
+++ b/templates/payment/table/search.html
@@ -17,7 +17,7 @@
type="search"
name="name"
class="g-Form__Input"
- value="{{ query.name }}"
+ value="{{ query.name or '' }}"
/>
</label>
@@ -27,7 +27,7 @@
type="number"
name="cost"
class="g-Form__Input"
- value="{{ query.cost }}"
+ value="{{ query.cost or '' }}"
/>
</label>
@@ -38,7 +38,7 @@
{% for user in users %}
<option
value="{{ user.id }}"
- {% if user.id == query.user %} selected {% endif %}
+ {% if "" ~ user.id == "" ~ query.user %} selected {% endif %}
>
{{ user.name }}
</option>
@@ -67,7 +67,7 @@
type="date"
name="start_date"
class="g-Form__Input"
- value="{{ query.start_date }}"
+ value="{{ query.start_date or '' }}"
/>
</label>
@@ -77,7 +77,7 @@
type="date"
name="end_date"
class="g-Form__Input"
- value="{{ query.end_date }}"
+ value="{{ query.end_date or '' }}"
/>
</label>