summaryrefslogtreecommitdiff
path: root/arduino_blog/templates/activation-status.html
diff options
context:
space:
mode:
Diffstat (limited to 'arduino_blog/templates/activation-status.html')
-rw-r--r--arduino_blog/templates/activation-status.html64
1 files changed, 64 insertions, 0 deletions
diff --git a/arduino_blog/templates/activation-status.html b/arduino_blog/templates/activation-status.html
new file mode 100644
index 0000000..a9764cb
--- /dev/null
+++ b/arduino_blog/templates/activation-status.html
@@ -0,0 +1,64 @@
+{% extends "base.html" %}
+
+{% block css%}
+ <link rel="stylesheet" href="{{ URL_ROOT }}/static/yaksh/css/dashboard.css" type="text/css" />
+{% endblock %}
+{% block content %}
+{% if success %}
+ <center>
+ <div class="alert alert-success" role="alert">
+ <strong> {{ msg }} </strong>
+ </div>
+ <!-- <a href="{{URL_ROOT}}/exam/"> Home </a> -->
+ </center>
+{% else %}
+ {% if msg %}
+ <center>
+ <div class="alert alert-warning" role="alert">
+ <strong> {{ msg }} </strong>
+ </div>
+ </center>
+ <form action="{% url 'arduino_blog: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">Send Email</button>
+ </center>
+ </form>
+ {% endif %}
+{% endif %}
+<br/>
+{% if activation_msg %}
+ <center>
+ <div class="alert alert-info" role="alert">
+ <strong> {{ activation_msg }} </strong>
+ </div>
+ <!-- <a href="{{URL_ROOT}}"> Home </a> -->
+ </center>
+{% endif %}
+
+{% if email_err_msg %}
+ <center>
+ <div class="alert alert-warning" role="alert">
+ <strong> {{ email_err_msg }} </strong>
+ </div>
+ </center>
+ <form action="{{ URL_ROOT }}/exam/update_email/" method="post">
+ {% csrf_token %}
+ <center>
+ <table>
+ <tr>
+ <td>Enter Username:</td>
+ <td><input type="text" name="username" required></td>
+ </tr>
+ <tr>
+ <td>Enter New Email Address:</td>
+ <td><input type="email" name="email" required></td>
+ </tr>
+ </table>
+ <br>
+ <button class="btn" type="submit">Submit</button>
+ </center>
+ </form>
+{% endif %}
+{% endblock content %}