templates/task/assigncredits.html
branchbuildout
changeset 227 3c8f3b0e5b00
parent 214 679c7e237052
child 228 81994e525e69
equal deleted inserted replaced
214:679c7e237052 227:3c8f3b0e5b00
     1 {% extends 'base.html' %}
       
     2 {% block title %}
       
     3     {{task.title}}
       
     4 {% endblock %}
       
     5 {% block content %}
       
     6         <a href="/task/view/tid={{task.id}}">Click here</a> to return to the task.<br />
       
     7 
       
     8         <form action="" method="post">
       
     9         {{form.as_p}}
       
    10         <input type="submit" value="Submit">
       
    11         </form>
       
    12         {% if prev_credits %}
       
    13             <a href="/task/complete/tid={{task.id}}">Mark task as complete.</a>
       
    14             <hr />
       
    15         {% endif %}
       
    16         {% if credit_requests %}
       
    17             <br/>Previous credits:<br />
       
    18             {% for req in credit_requests %}
       
    19             <hr />
       
    20                 <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> requested assigning of {{req.pynts}} pynts to
       
    21                 <a href="/user/view/uid={{req.receiving_user.id}}">{{req.receiving_user.username}}</a>
       
    22                 on {{req.creation_date|date:"D d M Y"}} at {{req.creation_date|time:"H:i"}}<br />
       
    23                 {% if req.is_replied %}
       
    24                     status: 
       
    25                     {% if req.reply %}
       
    26                         Approved by <a href="/user/view/uid={{req.replied_by.id}}">{{req.replied_by.username}}</a>
       
    27                         on {{req.reply_date|date:"D d M Y"}} at {{req.reply_date|time:"H:i"}}<br />
       
    28                     {% else %}
       
    29                         Rejected by <a href="/user/view/uid={{req.replied_by.id}}">{{req.replied_by.username}}</a>
       
    30                         on {{req.reply_date|date:"D d M Y"}} at {{req.reply_date|time:"H:i"}}<br />
       
    31                         {% if req.remarks %}
       
    32                             Reason: {{req.remarks}}
       
    33                         {% endif %}
       
    34                     {% endif %}
       
    35                 {% else %}
       
    36                     status: Request pending
       
    37                 {% endif %}
       
    38             {% endfor %}
       
    39         {% else %}
       
    40             No assigning of pynts has been made for this task.
       
    41         {% endif %}
       
    42 {% endblock %}