equal
deleted
inserted
replaced
1 {% extends 'base.html' %} |
|
2 {% block title %} |
|
3 {{task.title}} |
|
4 {% endblock %} |
|
5 {% block content %} |
|
6 {% if not old_reports %} |
|
7 There are no reports submitted as of now |
|
8 {% else %} |
|
9 {% for rep in old_reports %} |
|
10 {{rep.submitted_by}} | <a href="{{rep.attachment.url}}">{{rep.attachment.name}}</a> <br /> |
|
11 {% endfor %} |
|
12 {% endif %} |
|
13 <hr /> |
|
14 {% if can_upload %} |
|
15 Submit a report: <br /> |
|
16 <form action='' method=post enctype="multipart/form-data"> |
|
17 {{ form.as_p }} |
|
18 <input type=submit value=submit /> |
|
19 </form> |
|
20 {% endif %} |
|
21 {% endblock %} |
|