templates/task/addmentor.html
author anoop
Mon, 08 Mar 2010 16:30:35 +0530
changeset 209 f34052de27f5
parent 191 3bfe70742aa8
child 218 59107ce0a618
permissions -rw-r--r--
email address displayed was incorrect, fixed it.
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 />
c4cb937b8e7f added learn more links.
nishanth
parents: 151
diff changeset
     4
    Requesting a user to act as a mentor for the task sends him a request. If he accepts the request, he will also be the mentor for this task
c4cb937b8e7f added learn more links.
nishanth
parents: 151
diff changeset
     5
    {% ifequal task.status "UP" %}
191
3bfe70742aa8 now requested mentors can see unpublished task but not comment on it.
nishanth
parents: 163
diff changeset
     6
        and can view/edit<sup><a href="/about/mentor/" 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 %}
191
3bfe70742aa8 now requested mentors can see unpublished task but not comment on it.
nishanth
parents: 163
diff changeset
     8
        and will have all the rights<sup><a href="/about/mentor/" 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 %}
3395960549e8 now a user cannot make two requests to another user for mentoring a task.
nishanth
parents: 21
diff changeset
    21
                <a href="/user/view/uid={{a_user.id}}">{{a_user.username}}</a> to act as a mentor
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 %}