updater never made it to production
[unfold.git] / portal / templates / my_account.html
1 {% extends "layout-unfold1.html" %}
2
3 {% block head %}
4 <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/my_account.common.css" />
5 <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/my_account.profile.css" />
6 <!-- <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/dashboard.css" /> !-->
7 <script type="text/javascript" src="{{STATIC_URL}}/jquery.validate.js"></script> 
8 <script type="text/javascript" src="{{STATIC_URL}}/my_account.edit_profile.js"></script>
9 <script type="text/javascript" src="{{STATIC_URL}}/my_account.register.js"></script>
10 {% endblock %}
11
12 {% block unfold1_main %}
13
14
15 <h2>Platform Access</h2>
16 <table border="2" bordercolor="FFCC00" style="table-layout:fixedbackground-color:FFFFCCwidth:830px" cellpadding="12" cellspacing="12"> 
17         <tr> 
18         <th align="center" style="width:15%">Platform</th> 
19         <th align="center" style="width:15%">Account Type</th> 
20         <th align="center" style="width:15%">user_hrn</th>
21         <th align="center">Pub Key</th>
22     </tr>            
23         <tr>
24         <td align="center"> {{ platform_name }} </td>
25         <td align="center"> {{ account_type }} </td>
26         <td align="center" style="word-wrap: break-word"> {{ account_usr_hrn }}  </td>
27         <td align="center" style="word-wrap: break-word"> {{ account_pub_key }} </td>
28     </tr>                
29 </table>
30
31
32
33
34 <div class='ms-dashboard-panel' id='ms-dashboard-slices' style=" display:block; float:none"  >
35     <div class='ms-dashboard-caption'>
36       <h2>MySlice  Account</h2>
37     </div>
38     <div class='ms-dashboard-content' id='tophat__list__user_hrn'>
39             <div id="main">
40                     <div id="middle" align="center">
41                        <form id="editForm"  method="POST" action="acc_process" enctype="multipart/form-data">
42                                                 {% csrf_token %}
43                        <table class="profile">          
44                                     <tr class="odd">
45                                             <td colspan="2">
46                                                 <div id="info">Personal Details</div>
47                                             </td>
48                                     </tr>
49                                 <tr class="even">
50                                             <td class="key">Email</td>
51                                             <td class="value">
52                                                    <span id="emailval" class="value" >{{ person.email }}</span>
53                                                    <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;">
54                                             </td>
55                                     </tr>
56                                 <tr class="odd">
57                                             <td class="key">Password</td>
58                                             <td class="value"> 
59                                                 <button class="edit" type="button" title="Password" name="edit_pass" id="edit_pass">Edit</button>
60                                                     <span id="passval"class="value">******** </span>
61                                                     <span class="hide_this" id="span_pass">
62                                                             <button type="button" class="cancel" title="Cancel" id="cancel_pass_change"> Cancel </button>
63                                                                 <div style='display:none;' id="pass_form">
64                                                                     <input type='hidden'  value='' /></div>
65                                                                     <table id="edit_password">
66                                                                             <tr>
67                                                                                     <td>Enter password: </td>
68                                                                                     <td class="field"> 
69                                                                                         <input type="password" name="password" id="password" />
70                                                                                     </td>
71                                                                             </tr>
72                                                                             <tr>
73                                                                                     <td>Confirm password: </td>
74                                                                                     <td class="field"> 
75                                                                                         <input type="password" name="confirmpassword" id="confirmpassword" /> 
76                                                                                         <input type="submit" name="submit_pass" value="Save"/> 
77                                                                                     </td>
78                                                                             </tr>
79                                                                     </table>
80                                                     </span>     
81                                             </td>
82                                 </tr>
83                                 <tr class="even">
84                                             <td class="key">Full Name</td>
85                                             <td class="value">
86                                                     <span id="nameval" class="value" >{{ fullname }} </span>
87                                                     <span class="hide_this" id="span_name">
88                                                             <button type="button" class="cancel" title="Cancel" id="cancel_name_change"> Cancel </button>
89                                                             
90                                                                 <div style='display:none;'><input type='hidden'  name='nameform'  /></div>
91                                                                     <input id="fname" type="text" name="fname" class="required"  maxlength="200" value="{{firstname}}" />
92                                                                     <input id="lname" type="text" name="lname" class="required"  maxlength="200" value="{{lastname}}" />
93                                                                     <input type="submit" name="submit_name" value="Save"/>
94                                                     </span>
95                                                     <button class="edit" type="button"title="Full Name" id="edit_name">Edit</button>
96                                             </td>
97
98                                 </tr>
99                                 <tr class="odd">
100                                             <td class="key">Affiliation</td>
101                                             <td class="value">
102                                                     <span id="affval" class="value">{{ affiliation }}</span>
103                                                     <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; ">
104                                             </td>
105                                     </tr>
106                             
107                         <tr class="even">
108                                     <td class="key">Generate Keys</td>
109                                     <td> 
110                                         </div>
111                                             <button id="generate_keypair" name="generate" type="submit" onclick="myFunction()" title="Generate a new key pair. After it is generated, you will need to download your public and private keys again.">Generate a new Key Pair </button>
112                                          </div>
113                                     </td> 
114                             </tr>
115                             <tr class="odd">
116                                     <td class="key">Public Key
117                                     </td>
118                                     <td class="value">
119                                             
120                                             <span id="keyval" class="value">******** </span>
121                                             <span class="hide_this" id="span_upload">
122                                                     <button type="button" class="cancel" title="Cancel" id="cancel_upload"> Cancel </button>
123                                                         <div style='display:none;'>
124                                                             <input type='hidden'  name='upload'  /></div>
125                                                             <input type="file" name="pubkey" class="required" id="pubkey"/> 
126                                                             
127                                                             <button name="upload_key" id="upload_key"  type="submit" title="Delete your private key">Upload </button>
128                                                             
129                                             </span>
130                                                 <div style='display:none;'>
131                                                     <input type='hidden'  name='dload'  />
132                                                 </div> 
133                                                     <button type="submit" name="dl_pubkey" class="download" title="Download your public key" id="dl_file"> Download </button>
134                                              <button id="upload_file" type="button" title="Upload a public key"> Upload </button>       
135                                     </td>
136                             </tr>
137                                     <tr class="even" id="pkey_row" display="none">
138                                             <td class="key">Private Key </td>
139                                             <td class="value">********<a href="#">
140                                                  <button type="submit" name="dl_pkey" class="download" title="Download your privaye key" id="dl_pkey"> Download </button>
141                                                  <button id="delete" name="delete" type="submit" title="Delete your private key">Delete </button>
142                                             </td>
143                                     </tr>
144                                     <tr class="odd">
145                                             <td colspan="2">
146
147                                                     <p class="warning" id="pkey_del_msg"> For better
148                                                     security we recommend that you
149                                                     download and delete your 
150                                                     private key from the 
151                                                     server. Always store your 
152                                                     private key in a secure 
153                                                     location. </p>
154                                             </td>
155                                     </tr>
156
157                             </table>
158                           </form>
159                     </div>
160             </div>
161         
162     </div>
163  </div>
164
165 {% endblock %}