templates/task/addmentor.html
author nishanth
Sun, 28 Feb 2010 18:27:50 +0530
changeset 149 3395960549e8
parent 21 c28774fe7ffd
child 151 d0cb85ba462a
permissions -rw-r--r--
now a user cannot make two requests to another user for mentoring a task.

{% extends 'base.html' %}
{% block content %}
    <form action="" method="post">
    {{form.as_table}}
    <input type="submit" value="submit">
    </form>
    {% if pending_requests %}
        Pending requests:<br />
        {% for req in pending_requests %}
            <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> requested 
            {% for a_user in req.sent_to.all %}
                <a href="/user/view/uid={{a_user.id}}">{{a_user.username}}</a> to act as a mentor
            {% endfor %}
            on {{req.creation_date|date:"D d M Y"}} at {{req.creation_date|time:"H:i"}}<br />
        {% endfor %}
    {% endif %}
{% endblock %}