login.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {% extends "base_generic.html" %}
  2. {% block content %}
  3. <form method="post" action="{% url 'login' %}">
  4. {% csrf_token %}
  5. <div class="container">
  6. <div class="col-sm-10">
  7. <br>
  8. <br>
  9. <h4 style="margin-top: 5px">Hallo, schön Sie wieder zu sehen!</h4>
  10. <div class="form-group " style="margin-top: 20px">
  11. {% if retry %} <p style="color: red">Versuchen Sie es hier erneut oder setzen Sie Ihr Passwort zurück</p> {% endif %}
  12. <label>{{ form.username.label_tag }}</label>
  13. <td>{{ form.username }}</td>
  14. </div>
  15. <div>
  16. <label>{{ form.password.label_tag }}</label>
  17. <td>{{ form.password }}</td>
  18. </div>
  19. </div>
  20. <div class="col-sm-10 justify-content-between">
  21. <div class="justify-content">
  22. <br>
  23. <input style="align-self: start" type="submit" class="btn btn-outline-secondary border-thin mybtn" value="login" />
  24. <input type="hidden" name="next" value="{{ next }}" />
  25. <br><br>
  26. <a style="align-self: end" class="btn btn-outline-secondary border-thin mybtn" href="{% url 'register-view' %}">Neuen Account Registrieren</a>
  27. </div>
  28. </div>
  29. <div class="col-sm-10">
  30. <br>
  31. <a style="align-self: end" href="{% url 'password_reset' %}">Passwort vergessen?</a>
  32. <br>
  33. <br>
  34. <br>
  35. <br>
  36. </div>
  37. </div>
  38. </form>
  39. {% endblock %}