From 1212811391eaafb7e86a2fdc825b4b0ecc20df45 Mon Sep 17 00:00:00 2001
From: adityacp
Date: Fri, 28 Feb 2020 11:46:41 +0530
Subject: Change in views, change password, paginator
- Add bootstrap form control class in change password
- Show alert messages in change password
- Increase number of pages in paginator
- Reduce number of course pages in moderator dashboard
---
.../registration/password_change_form.html | 82 +++++++++++++++++++---
yaksh/templates/yaksh/paginator.html | 2 +-
yaksh/views.py | 2 +-
3 files changed, 76 insertions(+), 10 deletions(-)
(limited to 'yaksh')
diff --git a/yaksh/templates/registration/password_change_form.html b/yaksh/templates/registration/password_change_form.html
index f286741..8d8424e 100644
--- a/yaksh/templates/registration/password_change_form.html
+++ b/yaksh/templates/registration/password_change_form.html
@@ -2,23 +2,89 @@
{% load static %}
-{% block pagetitle %}
-
{% endblock %}
+{% block script %}
+
+{% endblock %}
+
{% block content %}
Reset Password
+
{% if validlink %}
-
Please enter your new password twice so we can verify you typed it in correctly
.
+
Please enter your new password twice so we can verify you typed it in correctly
+
.
{% else %}
This reset link is no longer valid!
{% endif %}
+
{% endblock %}
--
cgit
From baa6211f10fc2c8427387987f74a9f2631e6a1a3 Mon Sep 17 00:00:00 2001
From: adityacp
Date: Fri, 28 Feb 2020 16:14:13 +0530
Subject: Fix UI for email account verification
---
yaksh/templates/yaksh/activation_status.html | 141 ++++++++++++++-------------
yaksh/views.py | 2 +-
2 files changed, 76 insertions(+), 67 deletions(-)
(limited to 'yaksh')
diff --git a/yaksh/templates/yaksh/activation_status.html b/yaksh/templates/yaksh/activation_status.html
index c196300..059aa21 100644
--- a/yaksh/templates/yaksh/activation_status.html
+++ b/yaksh/templates/yaksh/activation_status.html
@@ -1,79 +1,88 @@
{% extends "base.html" %}
-
-{% block pagetitle %} Yaksh Account Activation {% endblock %}
-{% block title %} Yaksh Account Activation {% endblock %}
-{% block css%}
-
-{% endblock %}
+{% load static %}
+{% block pagetitle %} Account Activation {% endblock %}
+{% block title %} Account Activation {% endblock %}
{% block nav %}
-
-
-
+
+
+
+
+
+
+
+
+
+
{% endblock %}
{% block content %}
-{% if success %}
-
-
- {{ msg }}
-
- Home
-
-{% else %}
- {% if msg %}
+
+ {% if success %}
-
+
{{ msg }}
+
Home
-
{% endif %}
-{% endif %}
-
-{% if activation_msg %}
-
-
- {{ activation_msg }}
-
- Home
-
-{% endif %}
-{% if email_err_msg %}
-
-
- {{ email_err_msg }}
-
-
-
-{% endif %}
+ {% if email_err_msg %}
+
+
+ {{ email_err_msg }}
+
+
+
+
+
+
+
+ {% endif %}
+
{% endblock content %}
diff --git a/yaksh/views.py b/yaksh/views.py
index 1ab3503..5d2d560 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -2171,7 +2171,7 @@ def new_activation(request, email=None):
try:
user = User.objects.get(email=email)
except MultipleObjectsReturned:
- context['email_err_msg'] = "Multiple entries found for this email"\
+ context['email_err_msg'] = "Multiple entries found for this email "\
"Please change your email"
return my_render_to_response(
request, 'yaksh/activation_status.html', context
--
cgit