summaryrefslogtreecommitdiff
path: root/tbc_error_page/templates/error.html
blob: 057820e3caaa2cac24eec2b29a999d070ab98be1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{% 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> {{reviewer.get_full_name}} </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>
                    <th> Chapters With errors</th>
                    <th> Number of errors</th>
                    <th> Delibrate Errors</th>
                </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>
	    <br/>
            <input class = "btn" type = "submit" value = "Submit"> </input>
        </form>
{% endif %}
{% endblock %}