templates/task/claim.html
author nishanth
Fri, 05 Feb 2010 16:05:54 +0530
changeset 33 0d0ea7b188d5
parent 25 c0e4fc8b8b5b
child 70 a14ec2f09beb
permissions -rw-r--r--
fixed a bug in templates/task/claim.html which required modification of views/task.py; also changed the no.of char limit on task title .

{% extends 'base.html' %}
{% block content %}
    {% if claims %}
        List of all the claims for the task <a href="/task/view/tid={{task.id}}">{{task.title}}</a><br />
        {% for claim in claims %}
            <hr />
            <a href="/user/view/uid={{claim.user.id}}">{{claim.user.username}}</a> at {{claim.creation_datetime.ctime}} wrote:<br />
            {{claim.message}}<br />
        {% endfor %}
    {% else %}
        There are no claims for task <a href="/task/view/tid={{task.id}}">{{task.title}}</a> yet.
    {% endif %}
    {% if task_claimed and is_mentor %}
        <a href="/task/assign/tid={{task.id}}">Assign task</a>
    {% endif %}
    {% if user_can_claim %}
    <hr />
    {% if errors %}
        {% for error in errors %}
            {{error}}<br />
        {% endfor %}
    {% endif %}
    Claim the task:<br />
        <form action="" method="post">
        <textarea name="message"></textarea><br />
        <input type="submit" value="Submit Claim">
        </form>
    {% endif %}
{% endblock %}