..
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<h1>PENRA Courses</h1>
|
||||
{% if not request.user.is_authenticated %}
|
||||
<a href="{% url 'login'%}">Log in</a>
|
||||
<a href="{% url 'password_reset'%}">Reset password</a>
|
||||
<!-- <a href="{% url 'password_reset'%}">Reset password</a> -->
|
||||
{% else %}
|
||||
<a href="{% url 'anatomy:index'%}">Anatomy</a>
|
||||
<a href="{% url 'physics:index'%}">Physics</a>
|
||||
|
||||
@@ -3,12 +3,14 @@
|
||||
{% block title %}Login{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Login</h2>
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button type="submit">Login</button>
|
||||
</form>
|
||||
<p><a href="{% url 'password_reset' %}">Reset password</a></p>
|
||||
<p><a href="{% url 'password_change' %}">Change password</a></p>
|
||||
<h2>Login</h2>
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button type="submit">Login</button>
|
||||
</form>
|
||||
<!-- <p><a href="{% url 'password_reset' %}">Reset password</a></p> -->
|
||||
{% if request.user.is_staff %}
|
||||
<p><a href="{% url 'password_change' %}">Change password</a></p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user