author | Madhusudan.C.S <madhusudancs@gmail.com> |
Mon, 17 Jan 2011 02:53:11 +0530 | |
changeset 435 | 1217d808d70f |
parent 431 | fcc87a3f0311 |
child 514 | 9d8fe5d8dcbb |
permissions | -rw-r--r-- |
431
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
1 |
{% extends "base.html" %} |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
2 |
|
382 | 3 |
{% block title %} |
431
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
4 |
{{task.title}} |
382 | 5 |
{% endblock %} |
431
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
6 |
|
382 | 7 |
{% block content %} |
431
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
8 |
|
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
9 |
{% if not old_reports %} |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
10 |
There are no reports submitted as of now<br /> |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
11 |
{% else %} |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
12 |
|
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
13 |
<table > |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
14 |
{% for rep in old_reports %} |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
15 |
<tr> |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
16 |
<td>{{rep.submitted_by}}</td> |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
17 |
<td><a href="{% url view_report rep.id %}">{{rep.data}}</a></td> |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
18 |
<td><a href="{{rep.attachment.url}}">{{rep.attachment.name}}</a> </td> |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
19 |
</tr> |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
20 |
{% endfor %} |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
21 |
</table> |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
22 |
|
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
23 |
{% endif %} |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
24 |
|
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
25 |
{% if is_working %} |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
26 |
<a href="{% url submit_report rep.id %}">Submit report</a> |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
27 |
<hr /> |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
28 |
{% endif %} |
382 | 29 |
{% endblock %} |