Create registration, login and profile forms
This commit is contained in:
parent
6ea3b78449
commit
395c411149
0
CineSync/templates/includes/footer.html
Normal file
0
CineSync/templates/includes/footer.html
Normal file
17
CineSync/templates/includes/form.html
Normal file
17
CineSync/templates/includes/form.html
Normal 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>
|
||||
0
CineSync/templates/includes/header.html
Normal file
0
CineSync/templates/includes/header.html
Normal file
Loading…
x
Reference in New Issue
Block a user