add names and ids to forms and buttons
This commit is contained in:
parent
13ad0fe98e
commit
138f712e3b
|
@ -3,10 +3,10 @@
|
|||
{% block section_title %}Login{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post">
|
||||
<form id="login" name="login" method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button type="submit">Login</button>
|
||||
<button name="button_login" type="submit">Login</button>
|
||||
<p><a href="{% url 'registration' %}">Go to registration.</a></p>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
Please correct the error{{ form.errors|pluralize }} below.
|
||||
</p>
|
||||
{% endif %}
|
||||
<form action="" method="post" novalidate>
|
||||
<form id="register" name="register" action="" method="post" novalidate>
|
||||
<table>
|
||||
{{ user_form.as_table }}
|
||||
{{ profile_form.as_table }}
|
||||
|
|
Loading…
Reference in New Issue