pytask/templates/task/view_work.html
author Nishanth Amuluru <nishanth@fossee.in>
Tue, 11 Jan 2011 16:51:07 +0530
changeset 144 daca865314e7
permissions -rw-r--r--
view_work is now working
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
144
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     1
{% extends 'base.html' %}
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     2
{% block title %}
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     3
    {{task.title}}
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     4
{% endblock %}
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     5
{% block content %}
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     6
{% if not old_reports %}
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     7
There are no reports submitted as of now<br />
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     8
{% else %}
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     9
<table >
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    10
{% for rep in old_reports %}
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    11
<tr>
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    12
	<td>{{rep.submitted_by}}</td>
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    13
	<td><a href="/task/view/report/rid={{rep.uniq_key}}">{{rep.data}}</a></td>
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    14
	<td><a href="{{rep.attachment.url}}">{{rep.attachment.name}}</a> </td>
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    15
</tr>
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    16
{% endfor %}
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    17
</table>
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    18
{% endif %}
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    19
{% if is_working %}
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    20
<a href="/task/submit/report/tid={{task.uniq_key}}">Submit report</a>
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    21
<hr />
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    22
{% endif %}
daca865314e7 view_work is now working
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    23
{% endblock %}