summaryrefslogtreecommitdiff
path: root/commentingapp/templates/commenting.html
blob: 82c19ed45d48ad59142f85fa0fcf54b7c0b9631f (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
43
44
45
46
47
48
49
50
{% extends "base.html" %}

{% block title %} TBC Commenting {% endblock %}

{% block content %}
	<h3><center> TBC Commenting  </center></h3>
        <h5> Hi <u> <b>{{reviewer.get_full_name}} </b> </u> </h5><br/>
	<a href = "https://pythontbc.disqus.com" target = "blank">Go to Disqus admin Page </a>

        {% if not url_context %}
        <center><h4> There are no new comments  </h4></center>
        {% else %}

	<form name = "Send Email" action = "{% url 'commentingapp.views.commenting' %}" method = "POST">
	{% csrf_token %}
	<table id = "comment-table" border = 2 align = "center">
	<tr>
	<th style = "width: 5%"> Sr. no </th>
	<th style = "width: 45%"> Url </th>
	<th colspan = ""> Comments </th>
	</tr>

	{% for urls in url_context %}
	<tr>
	<td colspan = ""> {{ forloop.counter }}</td>
	<td id = "urls" colspan = ""><a href = "{{ urls.url }}" target = "blank"> {{ urls.url }} </a> </td>
	<td>
	<table width = 100%>
	{% for comments in urls.comments_set.all %}
	{% if comments.is_notified == 0 %}
	<tr>
	<td style = "align:left;">{{comments.comments}}</td>
	<td style = "align:right;"><input type = "checkbox" name = "comment" value = "{{ urls.url }}, {{comments.comments}}"></input></td>
	</tr>
	{% endif %}
	{% endfor %}
	</td>
	</table>
	</tr>
	{% endfor %}
	</table>
	<br/>
	
	<center> <input class = "btn" type = "submit" value = "Submit"> </input></center>

	</form>
	{% endif %}

{% endblock %}