pytask/templates/task/view_work.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Sun, 23 Jan 2011 03:21:34 +0530
changeset 514 9d8fe5d8dcbb
parent 431 fcc87a3f0311
permissions -rw-r--r--
Fixed a bug related to using wrong ID in the template tag.

{% 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 %}