<script type="text/javascript" src="{{STATIC_URL}}/js/my_account.register.js"></script>
{% endblock %}
-{% block unfold1_main %}
+{% block unfold_main %}
-
-<h2>Platform Access</h2>
-<div id="middle" align="center">
- <div class="well">
- <table class="mytable">
- <tr class="odd">
- <th>Platform</th>
- <th>Account Type</th>
- <th>user_hrn</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.usr_hrn }} </td>
- <td class="even"> {{ row.usr_pubkey }} </td>
- </tr>
- {%endfor%}
- </table>
- </div>
-</div>
-
-
-<h2>MySlice Account</h2>
+<h2>User Details</h2>
{% if messages %}
<ul class="messages">
<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">
<button id="upload_file" type="button" title="Upload a public key"> Upload </button>
</td>
</tr>
- <tr class="even" id="pkey_row" display="none">
- <td class="key">Private Key </td>
+ <tr class="even" id="pkey_row">
+ {%if 'N/A' not in user_private_key%}
+ <td class="key">Private Key </td> <!-- Hide if priv_key doesn't exist in myslice platform -->
<td class="value">********<a href="#">
<button type="submit" name="dl_pkey" class="download" title="Download your privaye key" id="dl_pkey"> Download </button>
<button id="delete" name="delete" type="submit" title="Delete your private key">Delete </button>
</td>
+ {%endif%}
</tr>
<tr class="odd">
<td colspan="2">
</div>
</div>
+<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_delegation</th>
+ <th>user_hrn</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.usr_hrn }} </td>
+ <td class="odd"> {{ 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>
+
+
+
+
{% endblock %}