From b0d46d3318ea859dbdb062c07d1c6d064c7a90ad Mon Sep 17 00:00:00 2001 From: Adrian McPhee Date: Wed, 6 Nov 2024 12:15:26 +0100 Subject: [PATCH] fix: sign up form syntax improvements --- .../security/templates/security/sign_up/sign_up.html | 4 +++- .../templates/security/sign_up/sign_up_step_1.html | 9 +++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/capabilities/security/templates/security/sign_up/sign_up.html b/apps/capabilities/security/templates/security/sign_up/sign_up.html index cb809349..77c9d479 100644 --- a/apps/capabilities/security/templates/security/sign_up/sign_up.html +++ b/apps/capabilities/security/templates/security/sign_up/sign_up.html @@ -9,7 +9,7 @@ {% block content %} -{% with current_step = wizard.steps.current|int %} +{% with current_step=wizard.steps.current %} {% include 'logo.html' %} @@ -131,6 +131,8 @@ +{% endwith %} + {% endblock %} {% block extra_js %} diff --git a/apps/capabilities/security/templates/security/sign_up/sign_up_step_1.html b/apps/capabilities/security/templates/security/sign_up/sign_up_step_1.html index 184eec7b..ef918713 100644 --- a/apps/capabilities/security/templates/security/sign_up/sign_up_step_1.html +++ b/apps/capabilities/security/templates/security/sign_up/sign_up_step_1.html @@ -1,7 +1,7 @@ {% load static %}
- {% with non_field_errors = wizard.form|call:non_field_errors %} + {% with non_field_errors=wizard.form.non_field_errors %} {% if non_field_errors %}
@@ -9,9 +9,9 @@ Error Icon
    - {% for error in non_field_errors|list %} -
  • {{ error }}
  • - {% endfor %} + {% for error in non_field_errors %} +
  • {{ error }}
  • + {% endfor %}
{% else %} @@ -20,6 +20,7 @@ Please check your email for six-digit code
{% endif %} + {% endwith %}