X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fvalidate_pending.html;h=497b70b551c7ca3e212d706284b193034892dd43;hb=583c62239bbf6be5222e170609e547349389c1c1;hp=9ddf01c946ffff74751f83c6b9899f58803b2ae9;hpb=e6184193b74ac6d5c52289546dae9121bdd99008;p=myslice.git
diff --git a/portal/templates/validate_pending.html b/portal/templates/validate_pending.html
index 9ddf01c9..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 %}
-
-
-
- | type |
- id |
- details |
- timestamp |
- status |
-
- {% for request in requests %}
-
-
-
- {% if request.allowed == 'allowed' %}
-
- {% else %}
- {% if request.allowed == 'expired' %}
- expired
- {% else %} {# denied #}
- denied
+{% block content %}
+
+ Pending requests
+
+
+ {% if my_authorities %}
+
+ {% for authority, requests in my_authorities.items %}
+
+
+ {% endfor %}
-
- |
+{% else %}
+
+ There is no pending request waiting for validation.
+
+{% endif %}
- {% endfor %}
-
-{% endfor %}
+{% if sub_authorities %}
+
+
Sub-Authorities
+
+ {% for authority, requests in sub_authorities.items %}
+
+ {% endfor %}
-{% else %}
-
There is no pending request waiting for validation.
{% endif %}
{% if delegation_authorities %}
-
-
Authorities with delegation
-
-{% for authority, requests in delegation_authorities.items %}
-
{{authority}}
-
-
- | type |
- id |
- details |
- timestamp |
- status |
-
- {% for request in requests %}
-
-
- {% if request.allowed == 'allowed' %}
-
- {% else %}
- {% if request.allowed == 'expired' %}
- expired
- {% else %} {# denied #}
- denied
- {% endif %}
- {% endif %}
- |
- {{ request.type }} |
- {{ request.id }} |
-
- {% if request.type == 'user' %}
- Login: {{request.login}} -- First name: {{request.first_name}} -- Last name: {{request.last_name}} -- Email: {{request.email}}
- {% else %}
- {% if request.type == 'slice' %}
- Slice name: {{request.slice_name}} -- Number of nodes: {{request.number_of_nodes}} -- Type of nodes: {{request.type_of_nodes}} -- Purpose: {{request.purpose}}
- {% else %} {# authority #}
- TODO
- {% endif %}
- {% endif %}
- |
- {{ request.timestamp }} |
+
+
Authorities with delegation
+
+ {% for authority, requests in delegation_authorities.items %}
+
+
{{authority}}
+
-{% endfor %}
-
+
+
+ {% endfor %}
+
+
+ {% endfor %}
{% endif %}
-
-