cosmetic
[myslice.git] / portal / templates / account-view.html
index 1133452..30116df 100644 (file)
@@ -10,7 +10,7 @@
 
 {% block unfold_main %}
 
-<h2>MySlice  Account</h2>
+<h2>User Details</h2>
 
 {% if messages %}
 <ul class="messages">
 {% endif %}
 
 
+<form id="editForm"  method="POST" action="account_process" enctype="multipart/form-data">
 <div id="middle" align="center">
        <div class="well">
-               <form id="editForm"  method="POST" action="account_process" enctype="multipart/form-data">
                {% csrf_token %}
                        <table class="profile">          
                        <tr class="odd">
                                <td colspan="2">
-                                               <div id="info">Personal Details</div>
+                                               <div id="info">Platform: Myslice</div>
                                </td>
                        </tr>
                        <tr class="even">
                                </td>
                                </tr>
                        </table>
-               </form>
        </div>
 </div>
 
-<h2>Platform Access</h2>
+<h2>Account Information</h2>
+<h3>Principal Accounts</h3>
 <div id="middle" align="center">
        <div class="well">
                <table class="mytable"> 
                        <tr class="odd"> 
                        <th>Platform</th> 
-                       <th>Account Type</th> 
+                       <th>Account Type</th>
+                               <th>Account_delegation</th>
+                               <th>Credential Expiration</th>   
                        <th>user_hrn</th>
-                       <th>Pub Key</th>
+                       <!--<th>Pub Key</th> -->
                </tr>   
                        {% for row in data %}         
                        <tr class="border_bottom">
                        <td class="odd"> {{ row.platform_name }} </td>
                        <td class="even"> {{ row.account_type }} </td>
+                               <td class="odd"> {{ row.delegation_type }} </td>
+                               <td class="even"> {{ row.credential_expiration }} </td>
                                <td class="odd"> {{ row.usr_hrn }}  </td>
-                       <td class="even"> {{ row.usr_pubkey }} </td>
+               <!--    <td class="even"> {{ row.usr_pubkey }} </td> -->
                </tr> 
                        {%endfor%}               
                </table>
        </div>
 </div>
 
+<h3>Secondary Accounts</h3>
+<div id="middle" align="center">
+    <div class="well">
+        <table class="mytable"> 
+            <tr class="odd"> 
+                <th>Platform</th> 
+                <th>Account Type</th>
+                               <th>Reference to</th>
+            </tr>   
+            {% for row in ref_acc %}         
+            <tr class="border_bottom">
+                <td class="odd"> {{ row.platform_name }} </td>
+                <td class="even"> {{ row.account_type }} </td>
+                               <td class="even"> {{ row.account_reference }} </td>
+            </tr> 
+            {%endfor%}               
+        </table>
+    </div>
+</div>
+
+<h2>Other Platforms</h2>
+<div id="middle" align="center">
+    <div class="well">
+        <table class="mytable"> 
+            <tr class="odd"> 
+                <th>Platforms</th> 
+                <th>Request Access</th>
+            </tr>   
+            {% for platform in platform_list %}         
+            <tr class="border_bottom">
+                <td class="odd"> {{ platform.platform_no_access }} </td>
+                <td class="even">
+                                       <button id="request_access" name= {{platform.platform_no_access}} type="submit" title="Request Access to this platform">Request {{platform.platform_no_access}}</button>
+                               </td>
+            </tr> 
+            {%endfor%}               
+        </table>
+    </div>
+</div>
+
+
+
+
+<h2>Slice Information</h2>
+<div id="middle" align="center">
+    <div class="well">
+        <table class="mytable"> 
+            <tr class="odd"> 
+                <th>Slice name</th> 
+                <th>Credential Expiration</th>
+            </tr>   
+            {% for row in my_slices %}         
+            <tr class="border_bottom">
+                <td class="odd"> {{ row.slice_name }} </td>
+                <td class="even"> {{ row.cred_exp }} </td>
+            </tr>
+            {%endfor%}
+        </table>
+    </div>
+</div>
+
+
+
+
+</form>
+
 
 
 {% endblock %}