Digital Rights Management für elektronische Patientenakten
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

login.html 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {% extends "base_generic.html" %}
  2. {% block content %}
  3. {% if form.errors %}
  4. <p>Your username and password didn't match. Please try again.</p>
  5. {% endif %}
  6. {% if next %}
  7. {% if user.is_authenticated %}
  8. <p>Your account doesn't have access to this page. To proceed,
  9. please login with an account that has access.</p>
  10. {% else %}
  11. <p>Please login...</p>
  12. {% endif %}
  13. {% endif %}
  14. <form id="submit_login" method="post" action="{% url 'login' %}">
  15. {% csrf_token %}
  16. <table>
  17. <tr>
  18. <td>{{ form.username.label_tag }}</td>
  19. <td>{{ form.username }}</td>
  20. </tr>
  21. <tr>
  22. <td>{{ form.password.label_tag }}</td>
  23. <td>{{ form.password }}</td>
  24. </tr>
  25. <tr>
  26. <td>Private Key :P</td>
  27. <td><textarea id="privkey" cols="40" rows="5"></textarea></td>
  28. </tr>
  29. <tr>
  30. <td>Public Key:</td>
  31. <td><textarea id="pubkey" cols="40" rows="5"></textarea> </td>
  32. </tr>
  33. </table>
  34. <input type="submit" value="login"/>
  35. <input type="hidden" name="next" value="{{ next }}" />
  36. </form>
  37. {# Assumes you setup the password_reset view in your URLconf #}
  38. <p><a href="{% url 'password_reset' %}">Lost password?</a></p>
  39. {% endblock %}