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 %} -
- - Home -
-{% else %} - {% if msg %} +
+ {% if success %}
-
-
- {% csrf_token %} + {% else %} + {% if msg %} +
+ +
+
+
+ + {% csrf_token %} +

+ + +
+
+ {% endif %} + {% endif %} +
+ {% if activation_msg %}
- Enter Email Address for verification:

- + + Home
- {% endif %} -{% endif %} -
-{% if activation_msg %} -
- - Home -
-{% endif %} -{% if email_err_msg %} -
- -
-
- {% csrf_token %} -
- - - - - - - - - -
Enter Username:
Enter New Email Address:
-
- -
-
-{% endif %} + {% if email_err_msg %} +
+ +
+
+
+
+ {% csrf_token %} + +
+ +
+ +
+
+
+ {% 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