diff options
author | Joris | 2025-01-26 17:58:57 +0100 |
---|---|---|
committer | Joris | 2025-01-26 17:58:57 +0100 |
commit | 24eeb54a6b7159964e8887ade7fa5173b50feb3a (patch) | |
tree | 91af6253df784445db9b084b02b38b37a83224e8 /templates/income/update.html | |
parent | c5759f348e70cf54b4bfa4cd17e1fe1828ead30a (diff) |
Replace tera by minijinjamain
tera was doing the job all right, but minijinja has fewer dependencies.
Diffstat (limited to 'templates/income/update.html')
-rw-r--r-- | templates/income/update.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/income/update.html b/templates/income/update.html index 855d5c4..f5f976e 100644 --- a/templates/income/update.html +++ b/templates/income/update.html @@ -10,7 +10,7 @@ <p class="g-Paragraph"> <a class="g-Link g-Media__Large" - href="/incomes?page={{ query.page | default(value=1) }}" + href="/incomes?page={{ query.page or 1 }}" > Retour aux revenus </a> @@ -39,12 +39,12 @@ name="amount" type="number" class="g-Form__Input" - value="{{ form.amount | default(value=income.amount) }}" + value="{{ form.amount or income.amount }}" required /> </label> - {% set user_id = form.user_id | default(value="" ~ income.user_id) %} + {% set user_id = form.user_id or income.user_id %} <label class="g-Form__Label"> Personne @@ -60,7 +60,7 @@ </select> </label> - {% set month_index = form.month | default(value="" ~ income.month) %} + {% set month_index = form.month or income.month %} <label class="g-Form__Label"> Mois @@ -82,7 +82,7 @@ name="year" type="number" class="g-Form__Input" - value="{{ form.year | default(value=income.year) }}" + value="{{ form.year or income.year }}" required /> </label> |