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.

{% extends 'base.html' %}
{% block title %}
    {{task.title}}
{% endblock %}
{% block content %}
{% if not old_reports %}
There are no reports submitted as of now<br />
{% else %}
<table >
{% for rep in old_reports %}
<tr>
	<td>{{rep.submitted_by}}</td>
	<td><a href="{% url view_report rep.id %}">{{rep.data}}</a></td>
	<td><a href="{{rep.attachment.url}}">{{rep.attachment.name}}</a> </td>
</tr>
{% endfor %}
</table>
{% endif %}
{% if is_working %}
<a href="{% url submit_report rep.id %}">Submit report</a>
<hr />
{% endif %}
{% endblock %}