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