templates/task/assigncredits.html
author nishanth
Wed, 03 Mar 2010 11:19:42 +0530
changeset 191 3bfe70742aa8
parent 136 8632a44b743d
permissions -rw-r--r--
now requested mentors can see unpublished task but not comment on it.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
93
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
     1
{% extends 'base.html' %}
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
     2
{% block title %}
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
     3
    {{task.title}}
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
     4
{% endblock %}
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
     5
{% block content %}
135
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
     6
        <a href="/task/view/tid={{task.id}}">Click here</a> to return to the task.<br />
93
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
     7
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
     8
        <form action="" method="post">
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
     9
        {{form.as_p}}
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
    10
        <input type="submit" value="Submit">
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
    11
        </form>
135
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    12
        {% if prev_credits %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    13
            <a href="/task/complete/tid={{task.id}}">Mark task as complete.</a>
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    14
            <hr />
136
8632a44b743d deducing previous credits for a task using the request model. with a few changes, we can ditchax the credits model.
nishanth
parents: 135
diff changeset
    15
        {% endif %}
8632a44b743d deducing previous credits for a task using the request model. with a few changes, we can ditchax the credits model.
nishanth
parents: 135
diff changeset
    16
        {% if credit_requests %}
135
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    17
            <br/>Previous credits:<br />
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    18
            {% for req in credit_requests %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    19
            <hr />
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    20
                <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> requested assigning of {{req.pynts}} pynts to
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    21
                <a href="/user/view/uid={{req.receiving_user.id}}">{{req.receiving_user.username}}</a>
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    22
                on {{req.creation_date|date:"D d M Y"}} at {{req.creation_date|time:"H:i"}}<br />
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    23
                {% if req.is_replied %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    24
                    status: 
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    25
                    {% if req.reply %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    26
                        Approved by <a href="/user/view/uid={{req.replied_by.id}}">{{req.replied_by.username}}</a>
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    27
                        on {{req.reply_date|date:"D d M Y"}} at {{req.reply_date|time:"H:i"}}<br />
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    28
                    {% else %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    29
                        Rejected by <a href="/user/view/uid={{req.replied_by.id}}">{{req.replied_by.username}}</a>
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    30
                        on {{req.reply_date|date:"D d M Y"}} at {{req.reply_date|time:"H:i"}}<br />
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    31
                        {% if req.remarks %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    32
                            Reason: {{req.remarks}}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    33
                        {% endif %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    34
                    {% endif %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    35
                {% else %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    36
                    status: Request pending
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    37
                {% endif %}
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    38
            {% endfor %}
136
8632a44b743d deducing previous credits for a task using the request model. with a few changes, we can ditchax the credits model.
nishanth
parents: 135
diff changeset
    39
        {% else %}
8632a44b743d deducing previous credits for a task using the request model. with a few changes, we can ditchax the credits model.
nishanth
parents: 135
diff changeset
    40
            No assigning of pynts has been made for this task.
135
0ede6b2c5cd1 now view credits page shows all the credits.. including the pending and rejected ones.
nishanth
parents: 114
diff changeset
    41
        {% endif %}
93
1a1e712e60fd finished assign_credits view. hav to integrate it with requests now.
nishanth
parents:
diff changeset
    42
{% endblock %}