b0dbaf8c29d2a50bbc59befc2986f2ac2ad19acb
[myslice.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 <script type="text/javascript" src="{{STATIC_URL}}/js/jquery.validate.js"></script> 
7 <script type="text/javascript" src="{{STATIC_URL}}/js/my_account.edit_profile.js"></script>
8 <script type="text/javascript" src="{{STATIC_URL}}/js/my_account.register.js"></script>
9 {% endblock %}
10
11 {% block unfold1_main %}
12
13
14
15 <div class='ms-dashboard-panel' id='ms-dashboard-slices' style=" display:block; float:none"  >
16     <div class='ms-dashboard-caption'>
17       <h2>MySlice  Account</h2>
18     </div>
19     <div class='ms-dashboard-content' id='tophat__list__user_hrn'>
20             <div id="main">
21                     <div id="middle">
22                        <form id="editForm"  method="POST" action="#" enctype="multipart/form-data">
23                        <table class="profile">          
24                                     <tr class="odd">
25                                             <td colspan="2">
26                                                 <div id="info">Personal Details</div>
27                                             </td>
28                                     </tr>
29                                 <tr class="even">
30                                             <td class="key">Email</td>
31                                             <td class="value">
32                                                    <span id="emailval" class="value" >{{ person.email }}</span>
33                                                    <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;">
34                                             </td>
35                                     </tr>
36                                 <tr class="odd">
37                                             <td class="key">Password</td>
38                                             <td class="value"> 
39                                                 <button class="edit" type="button" title="Password" name="edit_pass" id="edit_pass">Edit</button>
40                                                     <span id="passval"class="value">******** </span>
41                                                     <span class="hide_this" id="span_pass">
42                                                             <button type="button" class="cancel" title="Cancel" id="cancel_pass_change"> Cancel </button>
43                                                                 <div style='display:none;' id="pass_form">
44                                                                     <input type='hidden'  value='' /></div>
45                                                                     <table id="edit_password">
46                                                                             <tr>
47                                                                                     <td>Enter password: </td>
48                                                                                     <td class="field"> 
49                                                                                         <input type="password" name="password" id="password" />
50                                                                                     </td>
51                                                                             </tr>
52                                                                             <tr>
53                                                                                     <td>Confirm password: </td>
54                                                                                     <td class="field"> 
55                                                                                         <input type="password" name="confirmpassword" id="confirmpassword" /> 
56                                                                                         <input type="submit" name="submit_pass" value="Save"/> 
57                                                                                     </td>
58                                                                             </tr>
59                                                                     </table>
60                                                     </span>     
61                                             </td>
62                                 </tr>
63                                 <tr class="even">
64                                             <td class="key">Full Name</td>
65                                             <td class="value">
66                                                     <span id="nameval" class="value" >Yasin Rahman </span>
67                                                     <span class="hide_this" id="span_name">
68                                                             <button type="button" class="cancel" title="Cancel" id="cancel_name_change"> Cancel </button>
69                                                             
70                                                                 <div style='display:none;'><input type='hidden'  name='nameform'  /></div>
71                                                                     <input id="fname" type="text" name="fname" class="required"  maxlength="200" value="" />
72                                                                     <input id="lname" type="text" name="lname" class="required"  maxlength="200" value="" />
73                                                                     <input type="submit" name="submit_name" value="Save"/>
74                                                     </span>
75                                                     <button class="edit" type="button"title="Full Name" id="edit_name">Edit</button>
76                                             </td>
77
78                                 </tr>
79                                 <tr class="odd">
80                                             <td class="key">Affiliation</td>
81                                             <td class="value">
82                                                     <span id="affval" class="value">UPMC</span>
83                                                     <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; ">
84                                             </td>
85                                     </tr>
86                             
87                         <tr class="even">
88                                     <td class="key">Generate Keys</td>
89                                     <td> 
90                                         </div>
91                                             <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>
92                                          </div>
93                                     </td> 
94                             </tr>
95                             <tr class="odd">
96                                     <td class="key">Public Key
97                                     </td>
98                                     <td class="value">
99                                             
100                                             <span id="keyval" class="value">******** </span>
101                                             <span class="hide_this" id="span_upload">
102                                                     <button type="button" class="cancel" title="Cancel" id="cancel_upload"> Cancel </button>
103                                                         <div style='display:none;'>
104                                                             <input type='hidden'  name='upload'  /></div>
105                                                             <input type="file" name="pubkey" id="pubkey"/> 
106                                                             
107                                                             <button name="upload_key" id="upload_key"  type="submit" title="Delete your private key">Upload </button>
108                                                             
109                                             </span>
110                                                 <div style='display:none;'>
111                                                     <input type='hidden'  name='dload'  />
112                                                 </div> 
113                                                     <button type="submit" name="dl_pubkey" class="download" title="Download your public key" id="dl_file"> Download </button>
114                                              <button id="upload_file" type="button" title="Upload a public key"> Upload </button>       
115                                     </td>
116                             </tr>
117                                     <tr class="even" id="pkey_row" display="none">
118                                             <td class="key">Private Key </td>
119                                             <td class="value">********<a href="#">
120                                                  <button type="submit" name="dl_pkey" class="download" title="Download your privaye key" id="dl_pkey"> Download </button>
121                                                  <button id="delete" name="delete" type="submit" title="Delete your private key">Delete </button>
122                                             </td>
123                                     </tr>
124                                     <tr class="odd">
125                                             <td colspan="2">
126
127                                                     <p class="warning" id="pkey_del_msg"> For better
128                                                     security we recommend that you
129                                                     download and delete your 
130                                                     private key from the 
131                                                     server. Always store your 
132                                                     private key in a secure 
133                                                     location. </p>
134                                             </td>
135                                     </tr>
136
137                             </table>
138                           </form>
139                     </div>
140             </div>
141         
142     </div>
143  </div>
144
145 {% endblock %}