templates/task/report.html
author Nishanth Amuluru <nishanth@fossee.in>
Thu, 06 Jan 2011 11:54:57 +0530
changeset 225 042dabb73a22
parent 224 c41e38f36299
permissions -rw-r--r--
the report page now displays url of the uploaded attachment
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 %}
225
042dabb73a22 the report page now displays url of the uploaded attachment
Nishanth Amuluru <nishanth@fossee.in>
parents: 224
diff changeset
    10
{{rep.submitted_by}} | <a href="{{rep.attachment.url}}">{{rep.attachment.name}}</a> <br />
221
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 }}
224
c41e38f36299 added saving of attachments
Nishanth Amuluru <nishanth@fossee.in>
parents: 223
diff changeset
    18
<input type=submit value=submit />
223
b592ed0b12b1 added a form in the template, for users to submit work
Nishanth Amuluru <nishanth@fossee.in>
parents: 221
diff changeset
    19
</form>
b592ed0b12b1 added a form in the template, for users to submit work
Nishanth Amuluru <nishanth@fossee.in>
parents: 221
diff changeset
    20
{% endif %}
220
807e4b701a20 added a submit_report link for each task
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    21
{% endblock %}