templates/task/addmentor.html
author nishanth
Mon, 01 Mar 2010 04:44:49 +0530
changeset 156 7cad1e92713d
parent 151 d0cb85ba462a
child 163 c4cb937b8e7f
permissions -rw-r--r--
finalised the view_task page.

{% extends 'base.html' %}
{% block content %}
    <a href="/task/view/tid={{task.id}}">Click here</a> to return to the task.
    <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 %}