Skip to content

Commit

Permalink
fix: sign up form syntax improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianmcphee committed Nov 6, 2024
1 parent d75c79c commit b0d46d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

{% block content %}

{% with current_step = wizard.steps.current|int %}
{% with current_step=wizard.steps.current %}

{% include 'logo.html' %}

Expand Down Expand Up @@ -131,6 +131,8 @@
</div>
</div>

{% endwith %}

{% endblock %}

{% block extra_js %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{% load static %}
<div class="flex flex-col">
<div class="space-y-6 mb-0">
{% with non_field_errors = wizard.form|call:non_field_errors %}
{% with non_field_errors=wizard.form.non_field_errors %}
{% if non_field_errors %}
<div
class="w-fit mx-auto flex items-center px-3 py-1.5 py-2.5 rounded-md border border-solid border-[#F5222D] text-sm text-black/[0.85] bg-[#f5222d]/[0.08]">
<span class="w-4 h-4 flex shrink-0 items-center justify-center mr-3">
<img src="{% static 'images/error.svg' %}" alt="Error Icon">
</span>
<ul>
{% for error in non_field_errors|list %}
<li>{{ error }}</li>
{% endfor %}
{% for error in non_field_errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
</div>
{% else %}
Expand All @@ -20,6 +20,7 @@
Please check your email for six-digit code
</div>
{% endif %}
{% endwith %}

<label class="flex flex-col items-center digit-code">
<div class="text-sm text-black/[0.85] mb-2">
Expand Down

0 comments on commit b0d46d3

Please sign in to comment.