templates/task/claim.html
author Nishanth Amuluru <nishanth@fossee.in>
Thu, 06 Jan 2011 11:42:49 +0530
changeset 224 c41e38f36299
parent 218 59107ce0a618
permissions -rw-r--r--
added saving of attachments
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 %}
163
c4cb937b8e7f added learn more links.
nishanth
parents: 162
diff changeset
     3
    {% if user_can_claim %}
c4cb937b8e7f added learn more links.
nishanth
parents: 162
diff changeset
     4
        Propose a claim to work on this task.<sup><a href="/about/claimtask/" target="_blank">learn more</a></sup><br /><br />
c4cb937b8e7f added learn more links.
nishanth
parents: 162
diff changeset
     5
    {% endif %}
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
     6
    {% 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
     7
        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
     8
        {% 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
     9
            <hr />
204
fa1da06d25c9 now claims are read from notifications. we can ditchax claims model now.
nishanth
parents: 163
diff changeset
    10
            <a href="/user/view/uid={{claim.sent_from.id}}">{{claim.sent_from.username}}</a>
fa1da06d25c9 now claims are read from notifications. we can ditchax claims model now.
nishanth
parents: 163
diff changeset
    11
            on {{claim.sent_date|date:"D d M Y"}} at {{claim.sent_date|time:"H:i"}} wrote:<br />
fa1da06d25c9 now claims are read from notifications. we can ditchax claims model now.
nishanth
parents: 163
diff changeset
    12
            {{claim.remarks}}<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
    13
        {% 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
    14
    {% else %}
156
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    15
        {% if task_claimable %}
72
9fc60a221016 modified claim_task view to suit the new design
nishanth
parents: 70
diff changeset
    16
            There are no claims for this task yet.<br />
162
d378eff02f2e added au ru notifications.
nishanth
parents: 159
diff changeset
    17
            {% if user_can_claim %}
d378eff02f2e added au ru notifications.
nishanth
parents: 159
diff changeset
    18
                Be the first to claim the task.<br />
d378eff02f2e added au ru notifications.
nishanth
parents: 159
diff changeset
    19
            {% endif %}
72
9fc60a221016 modified claim_task view to suit the new design
nishanth
parents: 70
diff changeset
    20
        {% else %}
159
a74a32a5a3e1 finalised the look of all existing task views .
nishanth
parents: 156
diff changeset
    21
            The task cannot be claimed at this stage.<br />
72
9fc60a221016 modified claim_task view to suit the new design
nishanth
parents: 70
diff changeset
    22
        {% endif %}
159
a74a32a5a3e1 finalised the look of all existing task views .
nishanth
parents: 156
diff changeset
    23
        <a href="/task/view/tid={{task.id}}">Click here</a> to view 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
    24
    {% endif %}
218
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 205
diff changeset
    25
    {% if task_claimed and is_reviewer %}
163
c4cb937b8e7f added learn more links.
nishanth
parents: 162
diff changeset
    26
        <a href="/task/assign/tid={{task.id}}">Select a user to assign the work.</a><sup><a href="/about/assigntask/" target="_blank">learn more</a></sup>
25
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    27
    {% endif %}
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    28
    {% if user_can_claim %}
205
0c317f68df49 ditchaxed the claims model.
nishanth
parents: 204
diff changeset
    29
    <!--
156
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    30
        {% if errors %}
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    31
            {% for error in errors %}
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    32
                {{error}}<br />
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    33
            {% endfor %}
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    34
        {% endif %}
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    35
        
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    36
        <hr />
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    37
        Claim proposal:<br />
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    38
            <form action="" method="post">
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    39
            <textarea name="message"></textarea><br />
163
c4cb937b8e7f added learn more links.
nishanth
parents: 162
diff changeset
    40
            <input type="submit" value="Submit Claim"><br />
205
0c317f68df49 ditchaxed the claims model.
nishanth
parents: 204
diff changeset
    41
            
156
7cad1e92713d finalised the view_task page.
nishanth
parents: 72
diff changeset
    42
            </form>
205
0c317f68df49 ditchaxed the claims model.
nishanth
parents: 204
diff changeset
    43
        -->
0c317f68df49 ditchaxed the claims model.
nishanth
parents: 204
diff changeset
    44
        <hr />
0c317f68df49 ditchaxed the claims model.
nishanth
parents: 204
diff changeset
    45
        <form action="" method="post">
0c317f68df49 ditchaxed the claims model.
nishanth
parents: 204
diff changeset
    46
        {{form.as_p}}
0c317f68df49 ditchaxed the claims model.
nishanth
parents: 204
diff changeset
    47
        <input type="submit" value="Submit Claim"><br />
0c317f68df49 ditchaxed the claims model.
nishanth
parents: 204
diff changeset
    48
        Please note that you can claim only once and so write your proposal carefully.<br />
0c317f68df49 ditchaxed the claims model.
nishanth
parents: 204
diff changeset
    49
        </form>
25
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    50
    {% endif %}
205
0c317f68df49 ditchaxed the claims model.
nishanth
parents: 204
diff changeset
    51
25
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents:
diff changeset
    52
{% endblock %}