pytask/templates/task/view_work.html
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--
Manipulate all the templates to use {% url %} templatetag instead of hard coded URLs.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
382
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>
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
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 %}
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
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 %}