summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authoradityacp2017-04-07 15:59:41 +0530
committeradityacp2017-04-07 16:12:36 +0530
commit8db6fd363b27eab9d538173f07f90844eb5a7d0d (patch)
tree7c9dfcf05a36eca2a1677e75c4bf860de863efdd /yaksh
parent6ac440c1ce1d26ce86376ee6bbba70525c5da945 (diff)
downloadonline_test-8db6fd363b27eab9d538173f07f90844eb5a7d0d.tar.gz
online_test-8db6fd363b27eab9d538173f07f90844eb5a7d0d.tar.bz2
online_test-8db6fd363b27eab9d538173f07f90844eb5a7d0d.zip
Add template to display account activation status of user
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/templates/yaksh/activation_status.html47
1 files changed, 47 insertions, 0 deletions
diff --git a/yaksh/templates/yaksh/activation_status.html b/yaksh/templates/yaksh/activation_status.html
new file mode 100644
index 0000000..4ffd50e
--- /dev/null
+++ b/yaksh/templates/yaksh/activation_status.html
@@ -0,0 +1,47 @@
+{% extends "base.html" %}
+
+{% block pagetitle %} Yaksh Account Activation {% endblock %}
+{% block title %} Yaksh Account Activation {% endblock %}
+{% block content %}
+{% if success %}
+ <center>
+ <div class="alert alert-success" role="alert">
+ <strong> {{ msg }} </strong>
+ </div>
+ <a href="{{URL_ROOT}}/exam/"> Click Here to Login </a>
+ </center>
+{% else %}
+ {% if msg %}
+ <center>
+ <div class="alert alert-warning" role="alert">
+ <strong> {{ msg }} </strong>
+ </div>
+ </center>
+ <form action="{{ URL_ROOT }}/exam/new_activation/" method="post">
+ {% csrf_token %}
+ <center>
+ Enter Email Address for verification: <input type="email" name="email" required><br><br>
+ <button class="btn" type="submit">Resend Email</button>
+ <button class="btn" type="button" name="button"
+ onClick='location.replace("{{URL_ROOT}}/exam/");'>Cancel</button>
+ </center>
+ </form>
+ {% endif %}
+{% endif %}
+<br/>
+{% if new_activation_msg %}
+ <center>
+ <div class="alert alert-info" role="alert">
+ <strong> {{ new_activation_msg }} </strong>
+ </div>
+ <a href="{{URL_ROOT}}/exam/"> Click Here to Login </a></center>
+{% endif %}
+{% if activation_msg %}
+ <center>
+ <div class="alert alert-info" role="alert">
+ <strong> {{ activation_msg }} </strong>
+ </div>
+ <a href="{{URL_ROOT}}/exam/"> Click Here to Login </a></center>
+{% endif %}
+
+{% endblock content %} \ No newline at end of file