X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=portal%2Ftemplates%2Fvalidate_pending.html;h=497b70b551c7ca3e212d706284b193034892dd43;hb=0300e4a519eb44fa1e2b769f1c871471ebfe0620;hp=e21cac8a8b3e497df8c717b059d33fda0551d499;hpb=491bd4d5497b5c431ab35716425f4c95fd2c3696;p=myslice.git
diff --git a/portal/templates/validate_pending.html b/portal/templates/validate_pending.html
index e21cac8a..497b70b5 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 %}