summaryrefslogtreecommitdiff
path: root/tbc_error_page/templates/error.html
diff options
context:
space:
mode:
authormahesh2016-04-01 01:54:39 +0530
committermahesh2016-04-01 01:54:39 +0530
commitf701687ca6e6d324542aa51908dd67be3e47d725 (patch)
tree3ad01f8e9b3e6bf164316c2912828ff4ce48cc28 /tbc_error_page/templates/error.html
parentcf1209063bf68e01d312bc870280cf43b2a616a9 (diff)
downloadPython-TBC-Interface-f701687ca6e6d324542aa51908dd67be3e47d725.tar.gz
Python-TBC-Interface-f701687ca6e6d324542aa51908dd67be3e47d725.tar.bz2
Python-TBC-Interface-f701687ca6e6d324542aa51908dd67be3e47d725.zip
displays errors on tbc notebooks, broken notebook paths/urls
Diffstat (limited to 'tbc_error_page/templates/error.html')
-rw-r--r--tbc_error_page/templates/error.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/tbc_error_page/templates/error.html b/tbc_error_page/templates/error.html
new file mode 100644
index 0000000..ee4c415
--- /dev/null
+++ b/tbc_error_page/templates/error.html
@@ -0,0 +1,41 @@
+{% extends "base.html" %}
+{% block title %} TBC Error Page {% endblock %}
+
+
+ </head>
+
+{% block content %}
+ <body>
+ <h3><u><center>TBC Error Page </center></u></h3>
+ <h5> Hi <b><u>{{ user }} </b></u></h5>
+ <p><a href = "{% url 'tbc_error_page.views.broken' %}"> TBC Broken Links page </a></p>
+ {% if not context %}
+ <center><h4> There are no new errors </h4></center>
+ {% else %}
+ <table border = 2>
+ <tr>
+ <td><b> Chapters With errors</b></td>
+ <td><b> Number of errors</b></td>
+ <td><b> Delibrate Errors</b></td>
+ </tr>
+
+ <form name = "Send Email" action = "{% url 'tbc_error_page.views.error' %}" method = "POST"> {% csrf_token %}
+ {% for errors in context %}
+ <div class = "error"">
+
+ <tr>
+
+ {% if errors.is_deliberate == 0 %}
+ <td><a href = {{ errors.chapter_url }} target = "_blank"> {{ errors.chapter_name }} </a></td>
+ <td> {{ errors.number_of_errors }} </td>
+ <td> <input type = "checkbox" name = "deliberate" value = "{{ errors.chapter_url }}">
+ {% endif %}
+ </tr>
+ </div>
+
+ {% endfor %}
+ </table>
+ <input class = "btn" type = "submit" value = "Submit"> </input>
+ </form>
+{% endif %}
+{% endblock %}