templates/task/claim.html
author nishanth
Thu, 04 Feb 2010 23:15:37 +0530
changeset 25 c0e4fc8b8b5b
child 33 0d0ea7b188d5
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:
25
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
     1
{% extends 'base.html' %}
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
     2
{% block content %}
c0e4fc8b8b5b 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 />
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
     4
    {% for claim in claims %}
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
     5
        <hr />
c0e4fc8b8b5b 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 />
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
     7
        {{claim.message}}<br />
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
     8
    {% endfor %}
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
     9
    {% if task_claimable and is_mentor %}
c0e4fc8b8b5b 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>
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    11
    {% endif %}
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    12
    {% if user_can_claim %}
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    13
    <hr />
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    14
    {% if errors %}
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    15
        {% for error in errors %}
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    16
            {{error}}<br />
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    17
        {% endfor %}
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    18
    {% endif %}
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    19
    Claim the task:<br />
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    20
        <form action="" method="post">
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    21
        <textarea name="message"></textarea><br />
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    22
        <input type="submit" value="Submit Claim">
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    23
        </form>
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    24
    {% endif %}
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    25
{% endblock %}