templates/user/browse_requests.html
changeset 164 bfe621e64a16
parent 122 daee11bdfbaa
child 218 59107ce0a618
equal deleted inserted replaced
163:c4cb937b8e7f 164:bfe621e64a16
     1 {% extends 'base.html' %}
     1 {% extends 'base.html' %}
     2 {% block content %}
     2 {% block content %}
     3     {% if not reqs %}
     3     {% if not reqs %}
     4         You have no unreplied requests.
     4         You have no unreplied requests <sup><a href="/about/request/" target="_blank">learn more</a></sup><br />
     5     {% else %}
     5     {% else %}
       
     6         You have not yet replied to these requests.<sup><a href="/about/request/" target="_blank">learn more</a></sup><br /><br />
     6         {% for req in reqs %}
     7         {% for req in reqs %}
     7             <form><a href="/user/requests/rid={{req.id}}">
     8             <a href="/user/requests/rid={{req.id}}">
     8             {% if not req.is_read %}<b>{% endif %}{{req.sent_by.username}}|{{req.role}}|
     9             {% if not req.is_read %}<b>{% endif %}
     9             {% ifequal req.role "PY" %}            
    10             
    10                 {{req.task.title}}
    11             {% ifequal req.role "PY" %}
    11             {% endifequal %}</a>
    12                 Assign of pynts to {{req.receiving_user}} for the task "{{req.task.title|slice:":20"}}"
    12             {% if not req.is_read %}</b>{% endif %}<br /></form>
    13             {% endifequal %}
       
    14             
       
    15             {% ifequal req.role "MT" %} 
       
    16                 Request to mentor the task "{{req.task.title|slice:":20"}}"
       
    17             {% endifequal %}
       
    18             
       
    19             {% ifequal req.role "DV" %}
       
    20                 Request to act as a developer in the website
       
    21             {% endifequal %}
       
    22             
       
    23             {% ifequal req.role "MG" %}
       
    24                 Request to act as a manager in the website
       
    25             {% endifequal %}
       
    26             
       
    27             {% ifequal req.role "AD" %}
       
    28                 Request to act as an admin in the website
       
    29             {% endifequal %}
       
    30             
       
    31             
       
    32             {% if not req.is_read %}</b>{% endif %}<br />
       
    33             </a>
    13         {% endfor %}
    34         {% endfor %}
    14     {% endif %}
    35     {% endif %}
    15 {% endblock %}
    36 {% endblock %}