summaryrefslogtreecommitdiff
path: root/yaksh/templates/registration/password_reset_form.html
diff options
context:
space:
mode:
authoradityacp2019-12-20 15:34:23 +0530
committeradityacp2019-12-20 15:43:25 +0530
commitd60050dcfe7e32dc720e48942c7457860da79d6b (patch)
tree1d82d6e9c21954bbe2995a89615a19becdeb7945 /yaksh/templates/registration/password_reset_form.html
parent2e4c36969b18b9ebf09314d7a04094a7debe4387 (diff)
downloadonline_test-d60050dcfe7e32dc720e48942c7457860da79d6b.tar.gz
online_test-d60050dcfe7e32dc720e48942c7457860da79d6b.tar.bz2
online_test-d60050dcfe7e32dc720e48942c7457860da79d6b.zip
Use reverse url instead of traditional url in templates
Diffstat (limited to 'yaksh/templates/registration/password_reset_form.html')
-rw-r--r--yaksh/templates/registration/password_reset_form.html21
1 files changed, 13 insertions, 8 deletions
diff --git a/yaksh/templates/registration/password_reset_form.html b/yaksh/templates/registration/password_reset_form.html
index fd2220f..eeca8f2 100644
--- a/yaksh/templates/registration/password_reset_form.html
+++ b/yaksh/templates/registration/password_reset_form.html
@@ -1,12 +1,13 @@
{% extends "base.html" %}
-{% block title %}
-Forgot Password
-{% endblock %}
+{% load static %}
+
+{% block title %} Forgot Password {% endblock %}
+
{% block nav %}
<nav class="navbar navbar-expand-lg navbar-dark bg-primary fixed-top">
- <a class="navbar-brand" href="{{ URL_ROOT }}/exam/">
- <img src="{{ URL_ROOT }}/static/yaksh/images/yaksh_banner.png" alt="YAKSH">
- </a>
+ <a class="navbar-brand" href="{% url 'yaksh:index' %}">
+ <img src="{% static 'yaksh/images/yaksh_banner.png' %}" alt="YAKSH">
+ </a>
</nav>
{% endblock %}
@@ -26,8 +27,12 @@ Forgot Password
{{ form }}
<br><br>
- <button class="btn btn-success btn-lg" type="submit">Request</button>
- <a class="btn btn-primary btn-lg" href="{{URL_ROOT}}/exam/login/">Cancel</a>
+ <button class="btn btn-success btn-lg" type="submit">
+ Request
+ </button>
+ <a href="{% url 'yaksh:index' %}" class="btn btn-primary btn-lg">
+ Cancel
+ </a>
</form>
</div>
</div>