| 12345678910111213141516171819202122232425262728293031323334 |
- {% extends '_layout.html' %}
- {% block title %}
- Connexion
- {% endblock %}
- {% block main %}
- {% if form.errors %}
- <p>Your username and password didn't match. Please try again.</p>
- {% endif %}
-
- <form method="post" action="{% url 'login' %}">
- {% csrf_token %}
- <table>
- <tr>
- <td>{{ form.username.label_tag }}</td>
- <td>{{ form.username }}</td>
- </tr>
- <tr>
- <td>{{ form.password.label_tag }}</td>
- <td>{{ form.password }}</td>
- </tr>
- </table>
- <div class="flex-row flex-space-around">
- <input type="submit" value="Se Connecter">
- </div>
- <input type="hidden" name="next" value="{{ next }}">
- </form>
- <span><a href="{% url 'register'%}">Créer un nouveau compte</a></span>
- {% endblock %}
|