Login and registration #10

Merged
rixx merged 38 commits from 5-authentication into main 2025-03-20 09:20:55 +00:00
Showing only changes of commit eb91f59e09 - Show all commits

View file

@ -28,14 +28,23 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% endif %} {% endif %}
<details class="mt-2"> <div class="mt-2">
<summary>{% translate "Log in with email and password instead" %}</summary> <a data-bs-toggle="collapse"
<form method="post" action="{% url 'account_login' %}"> href="#login-form"
{% csrf_token %} role="button"
{{ form }} aria-controls="login-form"
<button class="btn btn-primary" type="submit">{% translate "Sign In" %}</button> class="d-flex align-items-center">
</form> <i class="bi bi-chevron-right me-2 ms-1 mb-2 collapse-icon"></i>
</details> {% translate "Log in with email and password instead" %}
</a>
<div class="collapse mt-3" id="login-form">
<form method="post" action="{% url 'account_login' %}">
{% csrf_token %}
{{ form }}
<button class="btn btn-primary" type="submit">{% translate "Sign In" %}</button>
</form>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>