From: Yasin Date: Fri, 6 Jun 2014 10:16:51 +0000 (+0200) Subject: account: template specific for fed4fire X-Git-Tag: myslice-1.1~74 X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=commitdiff_plain;h=dc78b106e59789f7aac853eb0db3159da876e87d account: template specific for fed4fire --- diff --git a/portal/accountview.py b/portal/accountview.py index 20c2b05c..5c8d15fd 100644 --- a/portal/accountview.py +++ b/portal/accountview.py @@ -24,7 +24,7 @@ class AccountView(LoginRequiredAutoLogoutView, ThemeView): def get_context_data(self, **kwargs): - + self.template_name = self.template page = Page(self.request) page.add_js_files ( [ "js/jquery.validate.js", "js/my_account.register.js", "js/my_account.edit_profile.js" ] ) page.add_css_files ( [ "css/onelab.css", "css/account_view.css","css/plugin.css" ] ) @@ -179,7 +179,6 @@ class AccountView(LoginRequiredAutoLogoutView, ThemeView): # we could use zip. this one is used if columns have unequal rows platform_list = [{'platform_no_access': t[0]} for t in itertools.izip_longest(total_platform_list)] - context = super(AccountView, self).get_context_data(**kwargs) context['principal_acc'] = principal_acc_list context['ref_acc'] = ref_acc_list diff --git a/portal/templates/account-view.html b/portal/templates/account-view.html index 69c43ca4..7d161ea3 100644 --- a/portal/templates/account-view.html +++ b/portal/templates/account-view.html @@ -30,7 +30,7 @@ @@ -144,23 +144,6 @@ {%endif%} - - {%if 'N/A' not in user_private_key%} - - - {%else%} - - - {%endif%} -
-
Platforms: Myslice
+

Platform: Myslice

Identity - - Identity - -

Tradeoff: Ease-of-use vs Security.
diff --git a/portal/templates/onelab/onelab_account-view.html b/portal/templates/onelab/onelab_account-view.html deleted file mode 100644 index a0806070..00000000 --- a/portal/templates/onelab/onelab_account-view.html +++ /dev/null @@ -1,322 +0,0 @@ -{% extends "layout_wide.html" %} -{% block content %} - - -{% if messages %} -

    - {% for message in messages %} - {{ message }} - {% endfor %} -
-{% endif %} - -
-
- -
- -
- {% csrf_token %} - - - - - - - - - - - - - - - - - - - - - {%if 'Enabled' in user_status %} - - - - - - - - - - {%if 'N/A' not in user_private_key%} - - - {%else%} - - - {%endif%} - - - - - {%endif%} -
-
Platforms: 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 %}