From da1d135a1834d20c0aa5d2f75ea15a0d7a9eba8a Mon Sep 17 00:00:00 2001 From: adityacp Date: Thu, 27 Apr 2017 15:33:47 +0530 Subject: Change activation_status template and add update_email url in urls.py --- yaksh/templates/yaksh/activation_status.html | 58 +++++++++++++++++++++------- yaksh/urls.py | 1 + 2 files changed, 46 insertions(+), 13 deletions(-) diff --git a/yaksh/templates/yaksh/activation_status.html b/yaksh/templates/yaksh/activation_status.html index 4ffd50e..c196300 100644 --- a/yaksh/templates/yaksh/activation_status.html +++ b/yaksh/templates/yaksh/activation_status.html @@ -2,13 +2,29 @@ {% block pagetitle %} Yaksh Account Activation {% endblock %} {% block title %} Yaksh Account Activation {% endblock %} +{% block css%} + +{% endblock %} +{% block nav %} + +{% endblock %} {% block content %} {% if success %}
- Click Here to Login + Home
{% else %} {% if msg %} @@ -21,27 +37,43 @@ {% csrf_token %}
Enter Email Address for verification:

- - +
{% endif %} {% endif %}
-{% if new_activation_msg %} -
- - Click Here to Login
-{% endif %} {% if activation_msg %}
- Click Here to Login
+ Home + {% endif %} -{% endblock content %} \ No newline at end of file +{% if email_err_msg %} +
+ +
+
+ {% csrf_token %} +
+ + + + + + + + + +
Enter Username:
Enter New Email Address:
+
+ +
+
+{% endif %} +{% endblock content %} diff --git a/yaksh/urls.py b/yaksh/urls.py index fae8204..20ce918 100644 --- a/yaksh/urls.py +++ b/yaksh/urls.py @@ -5,6 +5,7 @@ urlpatterns = [ url(r'^$', views.index), url(r'^login/$', views.user_login, name='login'), url(r'^logout/$', views.user_logout), + url(r'^update_email/$', views.update_email), url(r'^activate/(?P.+)$', views.activate_user), url(r'^new_activation/$', views.new_activation), url(r'^quizzes/$', views.quizlist_user, name='quizlist_user'), -- cgit