diff options
Diffstat (limited to 'templates/income')
-rw-r--r-- | templates/income/create.html | 4 | ||||
-rw-r--r-- | templates/income/update.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/income/create.html b/templates/income/create.html index 2f57250..6ea1fb0 100644 --- a/templates/income/create.html +++ b/templates/income/create.html @@ -49,7 +49,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> @@ -65,7 +65,7 @@ {% for month in months %} <option value="{{ loop.index }}" - {% if "" ~ loop.index == month_index %} + {% if "" ~ loop.index == "" ~ month_index %} selected {% endif %} > diff --git a/templates/income/update.html b/templates/income/update.html index f5f976e..14d76d2 100644 --- a/templates/income/update.html +++ b/templates/income/update.html @@ -52,7 +52,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> @@ -68,7 +68,7 @@ {% for month in months %} <option value="{{ loop.index }}" - {% if "" ~ loop.index == month_index %} selected {% endif %} + {% if "" ~ loop.index == "" ~ month_index %} selected {% endif %} > {{ month }} </option> |