templates/task/addmentor.html
author nishanth
Sun, 28 Feb 2010 19:31:41 +0530
changeset 151 d0cb85ba462a
parent 149 3395960549e8
child 163 c4cb937b8e7f
permissions -rw-r--r--
no bogus post request can be made now in addmentor page.
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 %}
151
d0cb85ba462a no bogus post request can be made now in addmentor page.
nishanth
parents: 149
diff changeset
     3
    <a href="/task/view/tid={{task.id}}">Click here</a> to return to the task.
21
c28774fe7ffd implemented "add another mentor" functionality to a task.
nishanth
parents:
diff changeset
     4
    <form action="" method="post">
c28774fe7ffd implemented "add another mentor" functionality to a task.
nishanth
parents:
diff changeset
     5
    {{form.as_table}}
c28774fe7ffd implemented "add another mentor" functionality to a task.
nishanth
parents:
diff changeset
     6
    <input type="submit" value="submit">
c28774fe7ffd implemented "add another mentor" functionality to a task.
nishanth
parents:
diff changeset
     7
    </form>
149
3395960549e8 now a user cannot make two requests to another user for mentoring a task.
nishanth
parents: 21
diff changeset
     8
    {% if pending_requests %}
3395960549e8 now a user cannot make two requests to another user for mentoring a task.
nishanth
parents: 21
diff changeset
     9
        Pending requests:<br />
3395960549e8 now a user cannot make two requests to another user for mentoring a task.
nishanth
parents: 21
diff changeset
    10
        {% 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
    11
            <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
    12
            {% 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
    13
                <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
    14
            {% endfor %}
3395960549e8 now a user cannot make two requests to another user for mentoring a task.
nishanth
parents: 21
diff changeset
    15
            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
    16
        {% endfor %}
3395960549e8 now a user cannot make two requests to another user for mentoring a task.
nishanth
parents: 21
diff changeset
    17
    {% endif %}
21
c28774fe7ffd implemented "add another mentor" functionality to a task.
nishanth
parents:
diff changeset
    18
{% endblock %}