My Account: fetch info from manifold db and display
[myslice.git] / portal / templates / my_account.html
index 72d69b6..2970c42 100644 (file)
@@ -1,8 +1,8 @@
 {% extends "layout-unfold1.html" %}
 
 {% block head %}
-<link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/my_account.common.css" />
-<link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/my_account.profile.css" />
+<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}}/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>
@@ -18,7 +18,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">          
@@ -31,7 +31,7 @@
                                             <td class="key">Email</td>
                                             <td class="value">
                                                    <span id="emailval" class="value" >{{ person.email }}</span>
-                                                   <img class="logo" src="{{STATIC_URL}}/ques_icon.png" onclick="emailAlert()"  title="To change your email please contact the administrator" style="height: 20px; width: 20px; position: absolute; left: 625px; left: 900px; margin-top: -9px;">
+                                                   <img class="logo" src="{{STATIC_URL}}/img/ques_icon.png" onclick="emailAlert()"  title="To change your email please contact the administrator" style="height: 20px; width: 20px; position: absolute; left: 625px; left: 900px; margin-top: -9px;">
                                             </td>
                                     </tr>
                                 <tr class="odd">
                                 <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>
@@ -80,8 +80,8 @@
                                 <tr class="odd">
                                             <td class="key">Affiliation</td>
                                             <td class="value">
-                                                    <span id="affval" class="value">UPMC</span>
-                                                    <img class="logo" src="{{STATIC_URL}}/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; ">
+                                                    <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>