My Account: Platform access table - OK
[myslice.git] / portal / templates / my_account.html
index 35dfa10..e67b600 100644 (file)
@@ -3,14 +3,35 @@
 {% block head %}
 <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/my_account.common.css" />
 <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/my_account.profile.css" />
-<script type="text/javascript" src="{{STATIC_URL}}/js/jquery.validate.js"></script> 
-<script type="text/javascript" src="{{STATIC_URL}}/js/my_account.edit_profile.js"></script>
-<script type="text/javascript" src="{{STATIC_URL}}/js/my_account.register.js"></script>
+<!-- <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/dashboard.css" /> !-->
+<script type="text/javascript" src="{{STATIC_URL}}/jquery.validate.js"></script> 
+<script type="text/javascript" src="{{STATIC_URL}}/my_account.edit_profile.js"></script>
+<script type="text/javascript" src="{{STATIC_URL}}/my_account.register.js"></script>
 {% endblock %}
 
 {% block unfold1_main %}
 
 
+<h2>Platform Access</h2>
+<table border="2" bordercolor="C1DAD7" style="table-layout:fixedbackground-color:FFFFCCwidth:830px" cellpadding="12" cellspacing="12"> 
+       <tr> 
+       <th align="center" style="width:15%">Platform</th> 
+        <th align="center" style="width:15%">Account Type</th> 
+        <th align="center" style="width:15%">user_hrn</th>
+        <th align="center">Pub Key</th>
+    </tr>   
+       {% for row in data %}         
+       <tr>
+       <td align="center"> {{ row.platform_name }} </td>
+        <td align="center"> {{ row.account_type }} </td>
+               <td align="center" style="word-wrap: break-word"> {{ row.usr_hrn }}  </td>
+        <td align="center" style="word-wrap: break-word"> {{ row.usr_pubkey }} </td>
+    </tr> 
+       {%endfor%}               
+</table>
+
+
+
 
 <div class='ms-dashboard-panel' id='ms-dashboard-slices' style=" display:block; float:none"  >
     <div class='ms-dashboard-caption'>
@@ -18,7 +39,7 @@
     </div>
     <div class='ms-dashboard-content' id='tophat__list__user_hrn'>
             <div id="main">
-                    <div id="middle">
+                    <div id="middle" align="center">
                        <form id="editForm"  method="POST" action="acc_process" enctype="multipart/form-data">
                                                {% csrf_token %}
                        <table class="profile">          
                                 <tr class="even">
                                             <td class="key">Full Name</td>
                                             <td class="value">
-                                                    <span id="nameval" class="value" >Yasin Rahman </span>
+                                                    <span id="nameval" class="value" >{{ fullname }} </span>
                                                     <span class="hide_this" id="span_name">
                                                             <button type="button" class="cancel" title="Cancel" id="cancel_name_change"> Cancel </button>
                                                             
                                                                 <div style='display:none;'><input type='hidden'  name='nameform'  /></div>
-                                                                    <input id="fname" type="text" name="fname" class="required"  maxlength="200" value="" />
-                                                                    <input id="lname" type="text" name="lname" class="required"  maxlength="200" value="" />
+                                                                    <input id="fname" type="text" name="fname" class="required"  maxlength="200" value="{{firstname}}" />
+                                                                    <input id="lname" type="text" name="lname" class="required"  maxlength="200" value="{{lastname}}" />
                                                                     <input type="submit" name="submit_name" value="Save"/>
                                                     </span>
                                                     <button class="edit" type="button"title="Full Name" id="edit_name">Edit</button>
                                 <tr class="odd">
                                             <td class="key">Affiliation</td>
                                             <td class="value">
-                                                    <span id="affval" class="value">UPMC</span>
+                                                    <span id="affval" class="value">{{ affiliation }}</span>
                                                     <img class="logo" src="{{STATIC_URL}}/img/ques_icon.png" onclick="affAlert()"  title="To change your affiliation please contact the administrator" style="height: 20px; width: 20px; position: absolute; left: 625px; left: 900px; ">
                                             </td>
                                     </tr>
                                                     <button type="button" class="cancel" title="Cancel" id="cancel_upload"> Cancel </button>
                                                         <div style='display:none;'>
                                                             <input type='hidden'  name='upload'  /></div>
-                                                            <input type="file" name="pubkey" id="pubkey"/> 
+                                                            <input type="file" name="pubkey" class="required" id="pubkey"/> 
                                                             
                                                             <button name="upload_key" id="upload_key"  type="submit" title="Delete your private key">Upload </button>