pytask/templates/task/view_work.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Mon, 17 Jan 2011 02:53:11 +0530
changeset 435 1217d808d70f
parent 431 fcc87a3f0311
child 514 9d8fe5d8dcbb
permissions -rw-r--r--
Use the new forms tags and fix the styling.

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