MyAcc: Adopted look & fill from Slice page
authorYasin <mohammed-yasin.rahman@lip6.fr>
Thu, 19 Dec 2013 14:36:33 +0000 (15:36 +0100)
committerYasin <mohammed-yasin.rahman@lip6.fr>
Thu, 19 Dec 2013 14:36:33 +0000 (15:36 +0100)
portal/accountview.py
portal/templates/account-view.html

index c7affb9..5e142a6 100644 (file)
@@ -26,7 +26,7 @@ class AccountView(LoginRequiredAutoLogoutView):
 
         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" ] )
+        page.add_css_files ( [ "css/onelab.css", "css/account_view.css","css/plugin.css" ] )
 
 
         user_query  = Query().get('local:user').select('config','email')
index 3b0e96d..0e9eb6a 100644 (file)
        </div>
 </div>
 
+
 <h2>Account Information</h2>
 <h3>Principal Account <small>Account used for delegating credentials</small></h3>
 <div id="middle" align="center">
 </div>
 
 
-<h3>Credentials</h3>
+
+
+<h3 id="show-pending" class="plugin-show" style="display: block;">
+<span class="glyphicon glyphicon-chevron-right"></span>
+<a href="#" class="plugin-tooltip" data-toggle="tooltip" data-original-title="Show plugin &quot;Pending operations&quot; (QueryUpdater)"></a>Credentials</h3>
+
+<div id="hide-pending" class="plugin-hide" style="display: none;">
+<span class="glyphicon glyphicon-chevron-down"></span>
+<a href="#" class="plugin-tooltip" data-toggle="tooltip" data-original-title="Hide plugin &quot;Pending operations&quot; (QueryUpdater)">Credentials</a>
+
+<h5>Delegated Credentials to Principal Account</h5>
 <div id="middle" align="center">
     <div class="well">
         <table class="mytable table table-bordered table-hover">
                <p><button class="btn btn-danger btn-lg btn-block"   name= "clear_cred" type="submit" title="Clear All Credentials">Clear Credentials</button></p>
     </div>
 </div>
+</div>
 
 
+<h3 id="show-filters" class="plugin-show" style="display: block;">
+<span class="glyphicon glyphicon-chevron-right"></span>
+<a href="#" class="plugin-tooltip" data-toggle="tooltip" data-original-title="Show plugin &quot;Pending operations&quot; (QueryUpdater)"></a>TestBed Accounts</h3>
 
+<div id="hide-filters" class="plugin-hide" style="display: none;">
+<span class="glyphicon glyphicon-chevron-down"></span>
+<a href="#" class="plugin-tooltip" data-toggle="tooltip" data-original-title="Hide plugin &quot;Pending operations&quot; (QueryUpdater)">TestBed Accounts</a>
 
-<h3>Testbed Accounts <small>Reference accounts in the following testbeds</small></h3>
+<h5>Reference Accounts in the following testbeds</h5>
 <div id="middle" align="center">
     <div class="well">
         <table class="mytable table table-bordered table-hover"> 
         </table>
     </div>
 </div>
+</div>
+
+
+<h3 id="show-resources" class="plugin-show" style="display: block;">
+<span class="glyphicon glyphicon-chevron-right"></span>
+<a href="#" class="plugin-tooltip" data-toggle="tooltip" data-original-title="Show plugin &quot;Pending operations&quot; (QueryUpdater)"></a>Add Accounts</h3>
 
-<h3>Add Accounts <small>Add ref. account to the following testbeds</small></h3>
+<div id="hide-resources" class="plugin-hide" style="display: none;">
+<span class="glyphicon glyphicon-chevron-down"></span>
+<a href="#" class="plugin-tooltip" data-toggle="tooltip" data-original-title="Hide plugin &quot;Pending operations&quot; (QueryUpdater)">Add Accounts</a>
+
+
+<h5>Add reference account to the following testbeds</h5>
 <div id="middle" align="center">
     <div class="well">
         <table class="mytable table table-bordered table-hover"> 
         </table>
     </div>
 </div>
+</div>
 
 </form>