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