login.html 1.2 KB

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