X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fvalidate_pending.html;h=6012720cff2a19d9fde8c56cc9a2f04a8783aaf8;hb=d74c083ca8390ce0812d730bc57ab95728013baf;hp=e21cac8a8b3e497df8c717b059d33fda0551d499;hpb=491bd4d5497b5c431ab35716425f4c95fd2c3696;p=myslice.git
diff --git a/portal/templates/validate_pending.html b/portal/templates/validate_pending.html
index e21cac8a..6012720c 100644
--- a/portal/templates/validate_pending.html
+++ b/portal/templates/validate_pending.html
@@ -1,8 +1,10 @@
-{% extends "layout-unfold1.html" %}
+{% extends "layout.html" %}
{% block head %}
-
{% endblock %}
-{% block unfold1_main %}
-
-
-
{{ request.type }}
-
{{ request.id }}
-
{{ request.timestamp }}
-
{{ request.authority_hrn }}
-
- {% if request.type == 'user' %}
-
First name: {{request.first_name}} -- Last name: {{request.last_name}} -- Email: {{request.email}}
- {% else %}
- {% if request.type == 'slice' %}
-
Number of nodes: {{request.number_of_nodes}} -- Type of nodes: {{request.type_of_nodes}} -- Purpose: {{request.purpose}}
- {% else %} {# authority #}
-
TODO
- {% endif %}
- {% endif %}
+{% block content %}
+
+
Pending requests
+
- {% if request.allowed == 'allowed' %}
-
- {% else %}
- {% if request.allowed == 'expired' %}
- expired
- {% else %} {# denied #}
- denied
+ {% if my_authorities %}
+
+ {% for authority, requests in my_authorities.items %}
+
+
- {% endfor %}
-{% endfor %}
+ {% endfor %}
{% else %}
-
There is no pending request waiting for validation.
+
+ There is no pending request waiting for validation.
+
{% endif %}
-{% if delegation_authorities %}
-
Authorities with delegation
-
-{% for authority, requests in delegation_authorities.items %}
-
{{authority}}
- {% for request in requests %}
-
-
{{ request.type }}
-
{{ request.id }}
-
{{ request.timestamp }}
-
{{ request.details }}
- {% if request.allowed == 'allowed' %}
-
- {% else %}
- {% if request.allowed == 'expired' %}
- expired
- {% else %} {# denied #}
- denied
+{% if sub_authorities %}
+
+
Sub-Authorities
+
+ {% for authority, requests in sub_authorities.items %}
+
- {% endfor %}
-{% endfor %}
+ {% endfor %}
{% endif %}
-
+{% if delegation_authorities %}
+
+
Authorities with delegation
+
+ {% for authority, requests in delegation_authorities.items %}
+
+ {% endfor %}
+
+{% endif %}
+
+
+
{% endblock %}