login.html 761 B

12345678910111213141516171819202122232425262728293031323334
  1. {% extends '_layout.html' %}
  2. {% block title %}
  3. Connexion
  4. {% endblock %}
  5. {% block main %}
  6. {% if form.errors %}
  7. <p>Your username and password didn't match. Please try again.</p>
  8. {% endif %}
  9. <form method="post" action="{% url 'login' %}">
  10. {% csrf_token %}
  11. <table>
  12. <tr>
  13. <td>{{ form.username.label_tag }}</td>
  14. <td>{{ form.username }}</td>
  15. </tr>
  16. <tr>
  17. <td>{{ form.password.label_tag }}</td>
  18. <td>{{ form.password }}</td>
  19. </tr>
  20. </table>
  21. <div class="flex-row flex-space-around">
  22. <input type="submit" value="Se Connecter">
  23. </div>
  24. <input type="hidden" name="next" value="{{ next }}">
  25. </form>
  26. <span><a href="{% url 'register'%}">Créer un nouveau compte</a></span>
  27. {% endblock %}