From 72f5c2a07b30ca91b801f05c684e368d3960dd00 Mon Sep 17 00:00:00 2001 From: Yasin Date: Mon, 16 Dec 2013 14:54:36 +0100 Subject: [PATCH] Adopted Bootstrap.css :) --- portal/accountview.py | 5 +--- portal/templates/account-view.html | 38 +++++++++++++++--------------- 2 files changed, 20 insertions(+), 23 deletions(-) diff --git a/portal/accountview.py b/portal/accountview.py index 0d4059f0..66eb91e4 100644 --- a/portal/accountview.py +++ b/portal/accountview.py @@ -66,7 +66,7 @@ class AccountView(LoginRequiredAutoLogoutView): pub_key_list = [] for platform_detail in platform_details: - if 'sfa' in platform_detail['gateway_type']: + if 'sfa' in platform_detail['gateway_type'] and platform_detail['disabled']==0: total_platform = platform_detail['platform'] total_platform_list.append(total_platform) @@ -152,10 +152,7 @@ class AccountView(LoginRequiredAutoLogoutView): platform_access_list.append(platform_access) # Removing the platform which already has access - print platform_access_list - print total_platform_list for platform in platform_access_list: - print platform total_platform_list.remove(platform) # we could use zip. this one is used if columns have unequal rows platform_list = [{'platform_no_access': t[0]} diff --git a/portal/templates/account-view.html b/portal/templates/account-view.html index ebad910b..3cfc5aa5 100644 --- a/portal/templates/account-view.html +++ b/portal/templates/account-view.html @@ -42,10 +42,10 @@ Password - + ******** - + @@ -57,7 +57,7 @@
Confirm password: - +
@@ -69,13 +69,13 @@ {{ fullname }} - +
- +
- + @@ -89,7 +89,7 @@ Generate Keys - @@ -99,23 +99,23 @@ ******** - +
- +
- - + + {%if 'N/A' not in user_private_key%} Private Key ******** - - + + {%endif%} @@ -169,7 +169,7 @@ {% for row in my_users %} {{ row.cred_exp }} - + {%endfor%} @@ -185,7 +185,7 @@ {{ row.slice_name }} {{ row.cred_exp }} - + {%endfor%} @@ -201,12 +201,12 @@ {{ row.auth_name }} {{ row.cred_exp }} - + {%endfor%}

-

+

@@ -229,7 +229,7 @@ {{ row.account_type }} {{ row.account_reference }} - + {%endfor%} @@ -249,7 +249,7 @@ {{ platform.platform_no_access }} - + {%endfor%} -- 2.43.0