pytask/templates/task/view_work.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Fri, 04 Feb 2011 16:38:21 +0530
changeset 558 fd3e6f5f01bd
parent 514 9d8fe5d8dcbb
permissions -rw-r--r--
Use the form helpers templatetag module in the addreviewer template.

{% 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 task.id %}">Submit report</a>
    <hr />
  {% endif %}
{% endblock %}