add names and ids to forms and buttons

This commit is contained in:
Andreas Zweili 2018-01-28 20:28:36 +01:00
parent 13ad0fe98e
commit 138f712e3b
2 changed files with 3 additions and 3 deletions

View File

@ -3,10 +3,10 @@
{% block section_title %}Login{% endblock %} {% block section_title %}Login{% endblock %}
{% block content %} {% block content %}
<form method="post"> <form id="login" name="login" method="post">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ 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> <p><a href="{% url 'registration' %}">Go to registration.</a></p>
</form> </form>
{% endblock %} {% endblock %}

View File

@ -8,7 +8,7 @@
Please correct the error{{ form.errors|pluralize }} below. Please correct the error{{ form.errors|pluralize }} below.
</p> </p>
{% endif %} {% endif %}
<form action="" method="post" novalidate> <form id="register" name="register" action="" method="post" novalidate>
<table> <table>
{{ user_form.as_table }} {{ user_form.as_table }}
{{ profile_form.as_table }} {{ profile_form.as_table }}