templates/task/report.html
author Nishanth Amuluru <nishanth@fossee.in>
Thu, 06 Jan 2011 10:05:58 +0530
changeset 223 b592ed0b12b1
parent 221 a3de0d3c60a3
child 224 c41e38f36299
permissions -rw-r--r--
added a form in the template, for users to submit work

{% extends 'base.html' %}
{% block title %}
    {{task.title}}
{% endblock %}
{% block content %}
{% if not old_reports %}
There are no reports submitted as of now
{% else %}
{% for rep in old_reports %}
{{rep.submitted_by}} | {{rep.attachment}} <br />
{% endfor %}
{% endif %}
<hr />
{% if can_upload %}
Submit a report: <br />
<form action='' method=post enctype="multipart/form-data">
{{ form.as_p }}
</form>
{% endif %}
{% endblock %}