X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fvalidate_pending.html;h=447c9318f48a7c8c2be404dd9085cb7013382996;hb=2f89f2e81c44a63d6d90746a1f3c126603280b66;hp=735abf67341c2b1c8c177fcc1410d386b47be34e;hpb=048e585c9c2431b804a3bff921c17fc2d3b34e85;p=myslice.git
diff --git a/portal/templates/validate_pending.html b/portal/templates/validate_pending.html
index 735abf67..447c9318 100644
--- a/portal/templates/validate_pending.html
+++ b/portal/templates/validate_pending.html
@@ -1,7 +1,6 @@
-{% extends "layout-unfold1.html" %}
+{% extends "layout.html" %}
{% block head %}
-
{% endblock %}
-{% block unfold_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 %}
-
-