From: Yasin Date: Tue, 13 Jan 2015 10:51:36 +0000 (+0100) Subject: Smartfire theme and inital templates + logo added X-Git-Tag: myslice-1.3~122^2~4 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=71c6735977897ab8c983051c8864a418e38ce4b8;p=unfold.git Smartfire theme and inital templates + logo added --- diff --git a/portal/static/img/SmartFIRE_logo.png b/portal/static/img/SmartFIRE_logo.png new file mode 100644 index 00000000..57b58f3b Binary files /dev/null and b/portal/static/img/SmartFIRE_logo.png differ diff --git a/portal/templates/smartfire/smartfire_account-view.html b/portal/templates/smartfire/smartfire_account-view.html new file mode 100644 index 00000000..199444a3 --- /dev/null +++ b/portal/templates/smartfire/smartfire_account-view.html @@ -0,0 +1,371 @@ +{% extends "layout.html" %} +{% block content %} + +
+
+ +
+ {%if 'no_creds' in user_cred %} +

NO CREDENTIALS are delegated to the portal!

+{%endif%} + +
+{% if messages %} + +{% endif %} +
+ +
+
+
+ +
+ +
+ {% csrf_token %} + + + + + + + + + + + + + + + + + + + + + {%if 'Enabled' in user_status %} + + + + + + + + + + {%if 'N/A' not in user_private_key%} + + + {%else%} + + + {%endif%} + + + + + {%endif%} +
+

Platform: Myslice

+
Email + {{ person.email }} + +
Password + + ******** + + + + + + + + + + + + +
Enter password:
Confirm password: + + +
+
+
Full Name + {{ fullname }} + + +
+ + + +
+ +
Authority + {{ authority }} + +
Generate Keys + +
Public Key + ******** + + +
+
+ + +
+
+ + +
Private Key ******** + + + Private Key ******** + + +
+

Tradeoff: Ease-of-use vs Security.
+ Ease-of-use: Automatic account delegation. Don't delete private key.
+ Security: Manual account delegation. Download & Delete private key. +

+
+ +
+
+ +
+
+ +

Principal Account Account used for delegating credentials

+ + + + + + + + + + {% for row in principal_acc %} + + + + + + + + + {%endfor%} +
PlatformAccount TypeAccount DelegationUser hrnUser Status
{{ row.platform_name }} {{ row.account_type }} {{ row.delegation_type }} {{ row.usr_hrn }} {{ row.user_status }}
+ +
+ + + {%if 'Enabled' in user_status %} +
+

Credentials Delegated to Principal Account

+ + + + + + + {% for row in my_users %} + + + + + {%endfor%} +
Delegated User Credential
Expiration DateDownload
{{ row.cred_exp }} + + + +
+

+ + + + + + + + {% for row in my_slices %} + + + + + + {%endfor%} +
Delegated Slice Credentials
Slice NameExpiration DateDownload
{{ row.slice_name }} {{ row.cred_exp }} + +
+

+ + + + + + + + {% for row in my_auths %} + + + + + + {%endfor%} +
Delegated Authority Credentials
Authority NameExpiration DateDownload
{{ row.auth_name }} {{ row.cred_exp }} + +
+

+ {%if '' not in my_users%} +

+ {%else%} +

+ {%endif%} +
+
+ + + + +
+
+ +

Testbed Access Reference Accounts in the following testbeds

+ + + + + + + + {% for row in ref_acc %} + + + + + + + {%endfor%} +
PlatformAccount TypeReference toRemove Account
{{ row.platform_name }} {{ row.account_type }} {{ row.account_reference }} + +
+ + +

Add reference account to the following testbeds

+ + + + + + {% for platform in platform_list %} + + + + + {%endfor%} +
PlatformsAdd Account
{{ platform.platform_no_access }} + +
+
+{%endif%} +
+ +
+ + + +{% endblock %} diff --git a/portal/templates/smartfire/smartfire_footer.html b/portal/templates/smartfire/smartfire_footer.html new file mode 100644 index 00000000..307f7d3c --- /dev/null +++ b/portal/templates/smartfire/smartfire_footer.html @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/portal/templates/smartfire/smartfire_home-view.html b/portal/templates/smartfire/smartfire_home-view.html new file mode 100644 index 00000000..8236fc5c --- /dev/null +++ b/portal/templates/smartfire/smartfire_home-view.html @@ -0,0 +1,189 @@ +{% extends "layout_base.html" %} +{% load portal_filters %} + +{% block content %} + +{% if username %} +
+
+ {%if 'is_pi' in pi %} +
+

+ EXPERIMENT +

+
+ +
+
+ +
+
+

Your slices + + + +

+
+
+
Loading Slices
+
+
+
+

MANAGEMENT

+
+ +
+
+ +
+
+
+

+ SUPPORT +

+
+ +
+
+ +
+
+ +
+

+ ACCOUNT +

+
+ +
+
+ +
+
+ {% if person.last_name %} + {{person.first_name}} {{person.last_name}}
+ {% endif %} + Username: {{person.email}} +
+
+
+ {%else%} +
+
+

+ EXPERIMENT +

+
+ +
+
+ +
+
+

Your slices + + +

+
+
+
Loading Slices
+
+
+
+

+ SUPPORT +

+
+ +
+
+ +
+
+ +
+

+ ACCOUNT +

+
+ +
+
+ +
+
+ {% if person.last_name %} + {{person.first_name}} {{person.last_name}}
+ {% endif %} + Username: {{person.email}} +
+
+
+ {%endif%} + +
+{% else %} +
+
+
+
+

+ SmartFIRE +

+

+ EU-South Korea Cooperation
+ On Future Internet Infrastructure +

+
+
+
+ {% widget '_widget-login-user.html' %} +
+
+
+
+
+{% endif %} + + + +{# widget "_widget-monitor.html" #} +{# widget "_widget-stats-top-slices.html" #} + +{% endblock %} diff --git a/portal/templates/smartfire/smartfire_institution.html b/portal/templates/smartfire/smartfire_institution.html new file mode 100644 index 00000000..bd361de2 --- /dev/null +++ b/portal/templates/smartfire/smartfire_institution.html @@ -0,0 +1,185 @@ +{% extends "layout_wide.html" %} + +{% block head %} + +{% endblock head %} + +{% block content %} +
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
Loading Slices
+ + {%if 'is_pi' in pi %} +
+ +
+ {% endif %} +
+
+ +
+
+
Loading Slices
+ + {% if 'is_pi' in pi %} +
+ {% if 'is_pi' in pi %} + + {% else %} + + {% endif %} + + +
+ {% endif %} +
+
+
+
+
+ +{% endblock %} diff --git a/portal/templates/smartfire/smartfire_management-tab-requests.html b/portal/templates/smartfire/smartfire_management-tab-requests.html new file mode 100644 index 00000000..e2557794 --- /dev/null +++ b/portal/templates/smartfire/smartfire_management-tab-requests.html @@ -0,0 +1,226 @@ + + +
+

From your authorities

+
+{% if my_authorities %} + + {% for authority, requests in my_authorities.items %} + +
+

{{authority}}

+
+ + + + + + + + + {% for request in requests %} + + + + + + + + + + + + + + {% endfor %} +
+ TypeIdDetailsTimestampStatus
+ {% if request.allowed == 'allowed' %} + + {% else %} + {% if request.allowed == 'expired' %} + expired + {% else %} {# denied #} + denied + {% endif %} + {% endif %} + {{ request.type }}{{ request.id }} + {% if request.type == 'user' %} + {{request.first_name}} {{request.last_name}} {{request.email}} + {% else %} + {% if request.type == 'slice' %} + {{request.slice_name}} -- Number of nodes: {{request.number_of_nodes}} -- Type of nodes: {{request.type_of_nodes}} -- Purpose: {{request.purpose}} + {% else %} {# authority #} + {{request.site_name}} ({{request.site_authority}}) -- {{request.address_city}}, {{request.address_country}} + {% endif %} + {% endif %} + {{ request.timestamp }}
+ {% endfor %} + +{% else %} +
+ There is no pending request waiting for validation. +
+{% endif %} +
nnllknjkn

+
+

From your sub-authorities

+
+{% if sub_authorities %} + + {% for authority, requests in sub_authorities.items %} +
+

{{authority}}

+
+ + + + + + + + + {% for request in requests %} + + + + + + + + + + + + {% endfor %} +
+ TypeIdDetailsTimestampStatus
+ {% 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 #} + Authority name: {{request.site_name}} -- authority_hrn: {{request.site_authority}} -- City: {{request.address_city}} -- Country: {{request.address_country}} + {% endif %} + {% endif %} + {{ request.timestamp }}
+ {% endfor %} +{% else %} +
+ There is no pending request waiting for validation. +
+{% endif %} + +
+

From your authorities with delegation

+
+ +{% if delegation_authorities %} + + {% for authority, requests in delegation_authorities.items %} +
+

{{authority}}

+
+ + + + + + + + {% for request in requests %} + + + + + + + + + + + + {% endfor %} +
+ TypeIdDetailsTimestampStatus
+ {% 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 #} + Authority name: {{request.site_name}} -- authority_hrn: {{request.site_authority}} -- City: {{request.address_city}} -- Country: {{request.address_country}} + {% endif %} + {% endif %} + {{ request.timestamp }}
+ {% endfor %} +{% else %} +
+ There is no pending request waiting for validation. +
+{% endif %} +
+ +
diff --git a/portal/templates/smartfire/smartfire_slicerequest_view.html b/portal/templates/smartfire/smartfire_slicerequest_view.html new file mode 100644 index 00000000..211f35da --- /dev/null +++ b/portal/templates/smartfire/smartfire_slicerequest_view.html @@ -0,0 +1,108 @@ +{% extends "layout.html" %} +{% load i18n %} + +{% block content %} +
+
+ +
+
+ + {% if errors %} +
+
+
    + {% for error in errors %} +
  • {{ error }}
  • + {% endfor %} +
+
+
+ {% endif %} + +
+
+
+ {% csrf_token %} + +
+ +
+
+ {%if 'is_pi' in pi %} + + {%else%} + + {%endif%} +
+
+ +
+
+ +
+ {%if 'is_pi' in pi %} + + {%else%} + + {%endif%} +
+ +
+
+ + +{% endblock %} + diff --git a/portal/templates/smartfire/smartfire_widget-login-user.html b/portal/templates/smartfire/smartfire_widget-login-user.html new file mode 100644 index 00000000..7529c61f --- /dev/null +++ b/portal/templates/smartfire/smartfire_widget-login-user.html @@ -0,0 +1,26 @@ +
+ {% if state %} + {{ state }} + {% endif %} +
+ {% csrf_token %} + {% if next %} + + {% endif %} +
+ +
+
+ +
+ + +
+
diff --git a/portal/templates/smartfire/smartfire_widget-topmenu.html b/portal/templates/smartfire/smartfire_widget-topmenu.html new file mode 100644 index 00000000..8a7c054c --- /dev/null +++ b/portal/templates/smartfire/smartfire_widget-topmenu.html @@ -0,0 +1,71 @@ +{% load portal_filters %} +
+
+
+ + {% if username %} + + {% else %} + + {% endif %} +
+ + {% if username %} + + {% endif %} +
+
+
+
+ +
+{% widget '_widget-message.html' %} +
+