author | Madhusudan.C.S <madhusudancs@gmail.com> |
Sat, 15 Jan 2011 21:21:49 +0530 | |
changeset 417 | b37e541bf950 |
parent 382 | daca865314e7 |
child 431 | fcc87a3f0311 |
permissions | -rw-r--r-- |
382 | 1 |
{% extends 'base.html' %} |
2 |
{% block title %} |
|
3 |
{{task.title}} |
|
4 |
{% endblock %} |
|
5 |
{% block content %} |
|
6 |
{% if not old_reports %} |
|
7 |
There are no reports submitted as of now<br /> |
|
8 |
{% else %} |
|
9 |
<table > |
|
10 |
{% for rep in old_reports %} |
|
11 |
<tr> |
|
12 |
<td>{{rep.submitted_by}}</td> |
|
417
b37e541bf950
Manipulate all the templates to use {% url %} templatetag instead of hard coded URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
382
diff
changeset
|
13 |
<td><a href="{% url view_report rep.id %}">{{rep.data}}</a></td> |
382 | 14 |
<td><a href="{{rep.attachment.url}}">{{rep.attachment.name}}</a> </td> |
15 |
</tr> |
|
16 |
{% endfor %} |
|
17 |
</table> |
|
18 |
{% endif %} |
|
19 |
{% if is_working %} |
|
417
b37e541bf950
Manipulate all the templates to use {% url %} templatetag instead of hard coded URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
382
diff
changeset
|
20 |
<a href="{% url submit_report rep.id %}">Submit report</a> |
382 | 21 |
<hr /> |
22 |
{% endif %} |
|
23 |
{% endblock %} |