diff options
author | Joris | 2025-02-28 19:06:20 +0100 |
---|---|---|
committer | Joris | 2025-02-28 19:06:33 +0100 |
commit | bf26a9a7d145590e498e6057db27cee2ad162445 (patch) | |
tree | 4c5e7b245beef013a9826fe5e426998380c941d7 /templates/payment | |
parent | 11e36a8df9655fc6fc5500846e9252e8d2d12873 (diff) |
Solidify string equality in templatesmain
"" ~ was missing when updating a payment. Add it everywhere.
Diffstat (limited to 'templates/payment')
-rw-r--r-- | templates/payment/create.html | 4 | ||||
-rw-r--r-- | templates/payment/table/search.html | 2 | ||||
-rw-r--r-- | templates/payment/update.html | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/templates/payment/create.html b/templates/payment/create.html index 8d18c13..379662a 100644 --- a/templates/payment/create.html +++ b/templates/payment/create.html @@ -69,7 +69,7 @@ {% for user in users %} <option value="{{ user.id }}" - {% if ("" ~ user.id) == ("" ~ user_id) %} + {% if "" ~ user.id == "" ~ user_id %} selected {% endif %} > @@ -88,7 +88,7 @@ {% for category in categories %} <option value="{{ category.id }}" - {% if "" ~ category.id == category_id %} selected {% endif %} + {% if "" ~ category.id == "" ~ category_id %} selected {% endif %} > {{ category.name }} </option> diff --git a/templates/payment/table/search.html b/templates/payment/table/search.html index cb72282..3516da8 100644 --- a/templates/payment/table/search.html +++ b/templates/payment/table/search.html @@ -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> diff --git a/templates/payment/update.html b/templates/payment/update.html index dfa0892..0cd7a06 100644 --- a/templates/payment/update.html +++ b/templates/payment/update.html @@ -81,7 +81,7 @@ {% for user in users %} <option value="{{ user.id }}" - {% if "" ~ user.id == user_id %} selected {% endif %} + {% if "" ~ user.id == "" ~ user_id %} selected {% endif %} > {{ user.name }} </option> @@ -97,7 +97,7 @@ {% for category in categories %} <option value="{{ category.id }}" - {% if "" ~ category.id == category_id %} selected {% endif %} + {% if "" ~ category.id == "" ~ category_id %} selected {% endif %} > {{ category.name }} </option> |