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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
220
807e4b701a20 added a submit_report link for each task
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     1
{% extends 'base.html' %}
807e4b701a20 added a submit_report link for each task
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     2
{% block title %}
807e4b701a20 added a submit_report link for each task
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     3
    {{task.title}}
807e4b701a20 added a submit_report link for each task
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     4
{% endblock %}
807e4b701a20 added a submit_report link for each task
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     5
{% block content %}
221
a3de0d3c60a3 created form and created basic template for work report
Nishanth Amuluru <nishanth@fossee.in>
parents: 220
diff changeset
     6
{% if not old_reports %}
a3de0d3c60a3 created form and created basic template for work report
Nishanth Amuluru <nishanth@fossee.in>
parents: 220
diff changeset
     7
There are no reports submitted as of now
a3de0d3c60a3 created form and created basic template for work report
Nishanth Amuluru <nishanth@fossee.in>
parents: 220
diff changeset
     8
{% else %}
a3de0d3c60a3 created form and created basic template for work report
Nishanth Amuluru <nishanth@fossee.in>
parents: 220
diff changeset
     9
{% for rep in old_reports %}
a3de0d3c60a3 created form and created basic template for work report
Nishanth Amuluru <nishanth@fossee.in>
parents: 220
diff changeset
    10
{{rep.submitted_by}} | {{rep.attachment}} <br />
a3de0d3c60a3 created form and created basic template for work report
Nishanth Amuluru <nishanth@fossee.in>
parents: 220
diff changeset
    11
{% endfor %}
a3de0d3c60a3 created form and created basic template for work report
Nishanth Amuluru <nishanth@fossee.in>
parents: 220
diff changeset
    12
{% endif %}
a3de0d3c60a3 created form and created basic template for work report
Nishanth Amuluru <nishanth@fossee.in>
parents: 220
diff changeset
    13
<hr />
223
b592ed0b12b1 added a form in the template, for users to submit work
Nishanth Amuluru <nishanth@fossee.in>
parents: 221
diff changeset
    14
{% if can_upload %}
b592ed0b12b1 added a form in the template, for users to submit work
Nishanth Amuluru <nishanth@fossee.in>
parents: 221
diff changeset
    15
Submit a report: <br />
b592ed0b12b1 added a form in the template, for users to submit work
Nishanth Amuluru <nishanth@fossee.in>
parents: 221
diff changeset
    16
<form action='' method=post enctype="multipart/form-data">
b592ed0b12b1 added a form in the template, for users to submit work
Nishanth Amuluru <nishanth@fossee.in>
parents: 221
diff changeset
    17
{{ form.as_p }}
b592ed0b12b1 added a form in the template, for users to submit work
Nishanth Amuluru <nishanth@fossee.in>
parents: 221
diff changeset
    18
</form>
b592ed0b12b1 added a form in the template, for users to submit work
Nishanth Amuluru <nishanth@fossee.in>
parents: 221
diff changeset
    19
{% endif %}
220
807e4b701a20 added a submit_report link for each task
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    20
{% endblock %}