portal: added wip for PI validation page
[myslice.git] / portal / templates / validate_pending.html
1 {% extends "layout-unfold1.html" %}
2
3 {% block head %}
4 <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/validate_pending.css" />
5 {% endblock %}
6
7 {% block unfold1_main %}
8
9 <h1>Pending requests</h1>
10
11 <h2>My authorities</h2>
12
13 {% if my_authorities %}
14
15 {% for authority, requests in my_authorities.items %}
16 <h3>{{authority}}</h3>
17     {% for request in requests %}
18     <div class='portal_validate_request {{request.type}} {% if forloop.counter|divisibleby:2 %}even{% else %}odd{% endif %}'>
19                 <span class='type'>{{ request.type }}</span>
20                 <span class='id'>{{ request.id }}</span>
21                 <span class='timestamp'>{{ request.timestamp }}</span>
22                 <span class='details'>{{ request.details }}</span>
23                 {% if request.allowed == 'allowed' %}
24                 <input type='checkbox'/>
25                 {% else %}
26                         {% if request.allowed == 'expired' %}
27                                 expired
28                         {% else %} {# denied #}
29                                 denied
30                         {% endif %}
31                 {% endif %}
32         </div>
33     {% endfor %}
34 {% endfor %}
35
36 {% else %}
37 <i>There is no pending request waiting for validation.</i>
38 {% endif %}
39
40 {% if delegation_authorities %}
41 <h2>Authorities with delegation</h2>
42
43 {% for authority, requests in delegation_authorities.items %}
44 <h3>{{authority}}</h3>
45     {% for request in requests %}
46     <div class='portal_validate_request {{request.type}} {% if forloop.counter|divisibleby:2 %}even{% else %}odd{% endif %}'>
47                 <span class='type'>{{ request.type }}</span>
48                 <span class='id'>{{ request.id }}</span>
49                 <span class='timestamp'>{{ request.timestamp }}</span>
50                 <span class='details'>{{ request.details }}</span>
51                 {% if request.allowed == 'allowed' %}
52                 <input type='checkbox'/>
53                 {% else %}
54                         {% if request.allowed == 'expired' %}
55                                 expired
56                         {% else %} {# denied #}
57                                 denied
58                         {% endif %}
59                 {% endif %}
60         </div>
61     {% endfor %}
62 {% endfor %}
63
64 {% endif %}
65
66 {% endblock %}