diff options
Diffstat (limited to 'templates/payment/create.html')
-rw-r--r-- | templates/payment/create.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/payment/create.html b/templates/payment/create.html index 4ac73de..7bcc536 100644 --- a/templates/payment/create.html +++ b/templates/payment/create.html @@ -44,7 +44,7 @@ <input name="name" class="g-Form__Input" - value="{{ form.name | default(value="") }}" + value="{{ form.name or "" }}" required {% if not form %} autofocus {% endif %} /> @@ -56,12 +56,12 @@ name="cost" type="number" class="g-Form__Input" - value="{{ form.cost | default(value="") }}" + value="{{ form.cost or "" }}" required /> </label> - {% set user_id = form.user_id | default(value="" ~ connected_user.id) %} + {% set user_id = form.user_id or connected_user.id %} <label class="g-Form__Label"> Personne @@ -79,7 +79,7 @@ </select> </label> - {% set category_id = form.category_id | default(value="") %} + {% set category_id = form.category_id or "" %} <label class="g-Form__Label"> Catégorie @@ -96,7 +96,7 @@ </select> </label> - {% set date = form.date | default(value=now() | date(format="%Y-%m-%d")) %} + {% set date = form.date or now("%Y-%m-%d") %} {% if query.frequency != "Monthly" %} <label class="g-Form__Label"> @@ -120,7 +120,7 @@ <input type="hidden" name="frequency" - value="{{ query.frequency | default(value="Punctual") }}" + value="{{ query.frequency or "Punctual" }}" /> <div> |