templates/task/addmentor.html
author Nishanth Amuluru <nishanth@fossee.in>
Thu, 06 Jan 2011 12:08:36 +0530
changeset 226 b4a3ec34c061
parent 218 59107ce0a618
permissions -rw-r--r--
the upload of attachments works correctly now
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21
c28774fe7ffd implemented "add another mentor" functionality to a task.
nishanth
parents:
diff changeset
     1
{% extends 'base.html' %}
c28774fe7ffd implemented "add another mentor" functionality to a task.
nishanth
parents:
diff changeset
     2
{% block content %}
163
c4cb937b8e7f added learn more links.
nishanth
parents: 151
diff changeset
     3
    <a href="/task/view/tid={{task.id}}">Click here</a> to return to the task.<br /><br />
218
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 191
diff changeset
     4
    Requesting a user to act as a reviewer for the task sends him a request. If he accepts the request, he will also be the reviewer for this task
163
c4cb937b8e7f added learn more links.
nishanth
parents: 151
diff changeset
     5
    {% ifequal task.status "UP" %}
218
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 191
diff changeset
     6
        and can view/edit<sup><a href="/about/reviewer/" target="_blank">learn more</a></sup> the task. But only the creator of a task can publish the task.
163
c4cb937b8e7f added learn more links.
nishanth
parents: 151
diff changeset
     7
    {% else %}
218
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 191
diff changeset
     8
        and will have all the rights<sup><a href="/about/reviewer/" target="_blank">learn more</a></sup> you posses over the task.
163
c4cb937b8e7f added learn more links.
nishanth
parents: 151
diff changeset
     9
    {% endifequal %}
c4cb937b8e7f added learn more links.
nishanth
parents: 151
diff changeset
    10
    <br />
c4cb937b8e7f added learn more links.
nishanth
parents: 151
diff changeset
    11
    <br />
21
c28774fe7ffd implemented "add another mentor" functionality to a task.
nishanth
parents:
diff changeset
    12
    <form action="" method="post">
c28774fe7ffd implemented "add another mentor" functionality to a task.
nishanth
parents:
diff changeset
    13
    {{form.as_table}}
163
c4cb937b8e7f added learn more links.
nishanth
parents: 151
diff changeset
    14
    <input type="submit" value="Submit">
21
c28774fe7ffd implemented "add another mentor" functionality to a task.
nishanth
parents:
diff changeset
    15
    </form>
149
3395960549e8 now a user cannot make two requests to another user for mentoring a task.
nishanth
parents: 21
diff changeset
    16
    {% if pending_requests %}
3395960549e8 now a user cannot make two requests to another user for mentoring a task.
nishanth
parents: 21
diff changeset
    17
        Pending requests:<br />
3395960549e8 now a user cannot make two requests to another user for mentoring a task.
nishanth
parents: 21
diff changeset
    18
        {% for req in pending_requests %}
3395960549e8 now a user cannot make two requests to another user for mentoring a task.
nishanth
parents: 21
diff changeset
    19
            <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> requested 
3395960549e8 now a user cannot make two requests to another user for mentoring a task.
nishanth
parents: 21
diff changeset
    20
            {% for a_user in req.sent_to.all %}
218
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 191
diff changeset
    21
                <a href="/user/view/uid={{a_user.id}}">{{a_user.username}}</a> to act as a reviewer
149
3395960549e8 now a user cannot make two requests to another user for mentoring a task.
nishanth
parents: 21
diff changeset
    22
            {% endfor %}
3395960549e8 now a user cannot make two requests to another user for mentoring a task.
nishanth
parents: 21
diff changeset
    23
            on {{req.creation_date|date:"D d M Y"}} at {{req.creation_date|time:"H:i"}}<br />
3395960549e8 now a user cannot make two requests to another user for mentoring a task.
nishanth
parents: 21
diff changeset
    24
        {% endfor %}
3395960549e8 now a user cannot make two requests to another user for mentoring a task.
nishanth
parents: 21
diff changeset
    25
    {% endif %}
21
c28774fe7ffd implemented "add another mentor" functionality to a task.
nishanth
parents:
diff changeset
    26
{% endblock %}