My Account: Platform access table - OK
[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 <!-- <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="C1DAD7" 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         {% for row in data %}         
24         <tr>
25         <td align="center"> {{ row.platform_name }} </td>
26         <td align="center"> {{ row.account_type }} </td>
27         <td align="center" style="word-wrap: break-word"> {{ row.usr_hrn }}  </td>
28         <td align="center" style="word-wrap: break-word"> {{ row.usr_pubkey }} </td>
29     </tr> 
30         {%endfor%}               
31 </table>
32
33
34
35
36 <div class='ms-dashboard-panel' id='ms-dashboard-slices' style=" display:block; float:none"  >
37     <div class='ms-dashboard-caption'>
38       <h2>MySlice  Account</h2>
39     </div>
40     <div class='ms-dashboard-content' id='tophat__list__user_hrn'>
41             <div id="main">
42                     <div id="middle" align="center">
43                        <form id="editForm"  method="POST" action="acc_process" enctype="multipart/form-data">
44                                                 {% csrf_token %}
45                        <table class="profile">          
46                                     <tr class="odd">
47                                             <td colspan="2">
48                                                 <div id="info">Personal Details</div>
49                                             </td>
50                                     </tr>
51                                 <tr class="even">
52                                             <td class="key">Email</td>
53                                             <td class="value">
54                                                    <span id="emailval" class="value" >{{ person.email }}</span>
55                                                    <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;">
56                                             </td>
57                                     </tr>
58                                 <tr class="odd">
59                                             <td class="key">Password</td>
60                                             <td class="value"> 
61                                                 <button class="edit" type="button" title="Password" name="edit_pass" id="edit_pass">Edit</button>
62                                                     <span id="passval"class="value">******** </span>
63                                                     <span class="hide_this" id="span_pass">
64                                                             <button type="button" class="cancel" title="Cancel" id="cancel_pass_change"> Cancel </button>
65                                                                 <div style='display:none;' id="pass_form">
66                                                                     <input type='hidden'  value='' /></div>
67                                                                     <table id="edit_password">
68                                                                             <tr>
69                                                                                     <td>Enter password: </td>
70                                                                                     <td class="field"> 
71                                                                                         <input type="password" name="password" id="password" />
72                                                                                     </td>
73                                                                             </tr>
74                                                                             <tr>
75                                                                                     <td>Confirm password: </td>
76                                                                                     <td class="field"> 
77                                                                                         <input type="password" name="confirmpassword" id="confirmpassword" /> 
78                                                                                         <input type="submit" name="submit_pass" value="Save"/> 
79                                                                                     </td>
80                                                                             </tr>
81                                                                     </table>
82                                                     </span>     
83                                             </td>
84                                 </tr>
85                                 <tr class="even">
86                                             <td class="key">Full Name</td>
87                                             <td class="value">
88                                                     <span id="nameval" class="value" >{{ fullname }} </span>
89                                                     <span class="hide_this" id="span_name">
90                                                             <button type="button" class="cancel" title="Cancel" id="cancel_name_change"> Cancel </button>
91                                                             
92                                                                 <div style='display:none;'><input type='hidden'  name='nameform'  /></div>
93                                                                     <input id="fname" type="text" name="fname" class="required"  maxlength="200" value="{{firstname}}" />
94                                                                     <input id="lname" type="text" name="lname" class="required"  maxlength="200" value="{{lastname}}" />
95                                                                     <input type="submit" name="submit_name" value="Save"/>
96                                                     </span>
97                                                     <button class="edit" type="button"title="Full Name" id="edit_name">Edit</button>
98                                             </td>
99
100                                 </tr>
101                                 <tr class="odd">
102                                             <td class="key">Affiliation</td>
103                                             <td class="value">
104                                                     <span id="affval" class="value">{{ affiliation }}</span>
105                                                     <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; ">
106                                             </td>
107                                     </tr>
108                             
109                         <tr class="even">
110                                     <td class="key">Generate Keys</td>
111                                     <td> 
112                                         </div>
113                                             <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>
114                                          </div>
115                                     </td> 
116                             </tr>
117                             <tr class="odd">
118                                     <td class="key">Public Key
119                                     </td>
120                                     <td class="value">
121                                             
122                                             <span id="keyval" class="value">******** </span>
123                                             <span class="hide_this" id="span_upload">
124                                                     <button type="button" class="cancel" title="Cancel" id="cancel_upload"> Cancel </button>
125                                                         <div style='display:none;'>
126                                                             <input type='hidden'  name='upload'  /></div>
127                                                             <input type="file" name="pubkey" class="required" id="pubkey"/> 
128                                                             
129                                                             <button name="upload_key" id="upload_key"  type="submit" title="Delete your private key">Upload </button>
130                                                             
131                                             </span>
132                                                 <div style='display:none;'>
133                                                     <input type='hidden'  name='dload'  />
134                                                 </div> 
135                                                     <button type="submit" name="dl_pubkey" class="download" title="Download your public key" id="dl_file"> Download </button>
136                                              <button id="upload_file" type="button" title="Upload a public key"> Upload </button>       
137                                     </td>
138                             </tr>
139                                     <tr class="even" id="pkey_row" display="none">
140                                             <td class="key">Private Key </td>
141                                             <td class="value">********<a href="#">
142                                                  <button type="submit" name="dl_pkey" class="download" title="Download your privaye key" id="dl_pkey"> Download </button>
143                                                  <button id="delete" name="delete" type="submit" title="Delete your private key">Delete </button>
144                                             </td>
145                                     </tr>
146                                     <tr class="odd">
147                                             <td colspan="2">
148
149                                                     <p class="warning" id="pkey_del_msg"> For better
150                                                     security we recommend that you
151                                                     download and delete your 
152                                                     private key from the 
153                                                     server. Always store your 
154                                                     private key in a secure 
155                                                     location. </p>
156                                             </td>
157                                     </tr>
158
159                             </table>
160                           </form>
161                     </div>
162             </div>
163         
164     </div>
165  </div>
166
167 {% endblock %}