templates/task/claim.html
author nishanth
Mon, 01 Mar 2010 04:44:49 +0530
changeset 156 7cad1e92713d
parent 72 9fc60a221016
child 159 a74a32a5a3e1
permissions -rw-r--r--
finalised the view_task page.
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 %}
33
0d0ea7b188d5 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 .
nishanth
parents: 25
diff changeset
     3
    {% if claims %}
0d0ea7b188d5 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 .
nishanth
parents: 25
diff changeset
     4
        List of all the claims for the task <a href="/task/view/tid={{task.id}}">{{task.title}}</a><br />
0d0ea7b188d5 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 .
nishanth
parents: 25
diff changeset
     5
        {% for claim in claims %}
0d0ea7b188d5 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 .
nishanth
parents: 25
diff changeset
     6
            <hr />
156
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
     7
            <a href="/user/view/uid={{claim.user.id}}">{{claim.user.username}}</a>
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
     8
            on {{claim.creation_datetime|date:"D d M Y"}} at {{claim.creation_datetime|time:"H:i"}} wrote:<br />
33
0d0ea7b188d5 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 .
nishanth
parents: 25
diff changeset
     9
            {{claim.message}}<br />
0d0ea7b188d5 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 .
nishanth
parents: 25
diff changeset
    10
        {% endfor %}
0d0ea7b188d5 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 .
nishanth
parents: 25
diff changeset
    11
    {% else %}
156
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    12
        {% if task_claimable %}
72
9fc60a221016 modified claim_task view to suit the new design
nishanth
parents: 70
diff changeset
    13
            There are no claims for this task yet.<br />
156
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    14
            Be the first to claim the task.<br />
72
9fc60a221016 modified claim_task view to suit the new design
nishanth
parents: 70
diff changeset
    15
        {% else %}
9fc60a221016 modified claim_task view to suit the new design
nishanth
parents: 70
diff changeset
    16
            This task cannot be claimed right now.
9fc60a221016 modified claim_task view to suit the new design
nishanth
parents: 70
diff changeset
    17
        {% endif %}
156
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    18
        <a href="/task/view/tid={{task.id}}">Click here</a> to return to the task.<br />
33
0d0ea7b188d5 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 .
nishanth
parents: 25
diff changeset
    19
    {% endif %}
0d0ea7b188d5 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 .
nishanth
parents: 25
diff changeset
    20
    {% if task_claimed and is_mentor %}
72
9fc60a221016 modified claim_task view to suit the new design
nishanth
parents: 70
diff changeset
    21
        <a href="/task/assign/tid={{task.id}}">Select a user to assign the work.</a>
25
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    22
    {% endif %}
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    23
    {% if user_can_claim %}
156
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    24
        {% if errors %}
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    25
            {% for error in errors %}
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    26
                {{error}}<br />
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    27
            {% endfor %}
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    28
        {% endif %}
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    29
        
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    30
        <hr />
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    31
        Please note that you can claim only once and so write your proposal carefully.<br />
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    32
        Claim proposal:<br />
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    33
            <form action="" method="post">
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    34
            <textarea name="message"></textarea><br />
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    35
            <input type="submit" value="Submit Claim">
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    36
            </form>
25
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    37
    {% endif %}
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    38
{% endblock %}