pytask/templates/task/claim.html
author nishanth
Mon, 01 Feb 2010 15:00:40 +0530
changeset 18 293692eb8f06
permissions -rw-r--r--
added the functionality to assign a task to one of the claimed users.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
     1
{% extends 'base.html' %}
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
     2
{% block content %}
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
     3
    List of all the claims for the task <a href="/task/view/tid={{task.id}}">{{task.title}}</a><br />
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
     4
    {% for claim in claims %}
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
     5
        <hr />
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
     6
        <a href="/user/view/uid={{claim.user.id}}">{{claim.user.username}}</a> at {{claim.creation_datetime.ctime}} wrote:<br />
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
     7
        {{claim.message}}<br />
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
     8
    {% endfor %}
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
     9
    {% if task_claimable and is_mentor %}
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    10
        <a href="/task/assign/tid={{task.id}}">Assign task</a>
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    11
    {% endif %}
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    12
    {% if user_can_claim %}
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    13
    <hr />
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    14
    {% if errors %}
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    15
        {% for error in errors %}
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    16
            {{error}}<br />
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    17
        {% endfor %}
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    18
    {% endif %}
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    19
    Claim the task:<br />
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    20
        <form action="" method="post">
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    21
        <textarea name="message"></textarea><br />
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    22
        <input type="submit" value="Submit Claim">
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    23
        </form>
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    24
    {% endif %}
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    25
{% endblock %}