templates/task/claim.html
author nishanth
Mon, 01 Mar 2010 12:44:27 +0530
changeset 162 d378eff02f2e
parent 159 a74a32a5a3e1
child 163 c4cb937b8e7f
permissions -rw-r--r--
added au ru notifications.

{% extends 'base.html' %}
{% block content %}
    {% if claims %}
        List of all the claims for the task <a href="/task/view/tid={{task.id}}">{{task.title}}</a><br />
        {% for claim in claims %}
            <hr />
            <a href="/user/view/uid={{claim.user.id}}">{{claim.user.username}}</a>
            on {{claim.creation_datetime|date:"D d M Y"}} at {{claim.creation_datetime|time:"H:i"}} wrote:<br />
            {{claim.message}}<br />
        {% endfor %}
    {% else %}
        {% if task_claimable %}
            There are no claims for this task yet.<br />
            {% if user_can_claim %}
                Be the first to claim the task.<br />
            {% endif %}
        {% else %}
            The task cannot be claimed at this stage.<br />
        {% endif %}
        <a href="/task/view/tid={{task.id}}">Click here</a> to view the task.<br />
    {% endif %}
    {% if task_claimed and is_mentor %}
        <a href="/task/assign/tid={{task.id}}">Select a user to assign the work.</a>
    {% endif %}
    {% if user_can_claim %}
        {% if errors %}
            {% for error in errors %}
                {{error}}<br />
            {% endfor %}
        {% endif %}
        
        <hr />
        Please note that you can claim only once and so write your proposal carefully.<br />
        Claim proposal:<br />
            <form action="" method="post">
            <textarea name="message"></textarea><br />
            <input type="submit" value="Submit Claim">
            </form>
    {% endif %}
{% endblock %}