Create registration, login and profile forms

This commit is contained in:
Ivan Kaziev 2024-04-16 17:04:46 +03:00
parent 6ea3b78449
commit 395c411149
3 changed files with 17 additions and 0 deletions

View File

View File

@ -0,0 +1,17 @@
{% if echo %}
<form method="post" action="{% url 'homepage:echo_submit' %}">
{% else %}
<form method="post">
{% endif %}
{% csrf_token %}
{% for field in form.visible_fields %}
<div class="mb-3 {% if field.widget_type == 'checkbox' %}form-check{% endif %}">
<label for="{{ field.id_for_label }}" class="form-label">{{ field.label }}</label>
{{ field }}
{% if field.help_text %}
<div class="form-text">{{ field.help_text }}</div>
{% endif %}
</div>
{% endfor %}
<button type="submit" class="btn btn-primary" style="margin-top: 50px">Отправить</button>
</form>

View File