1 {% extends "layout-unfold1.html" %}
2 {% block unfold_main %}
8 {% for message in messages %}
9 <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
15 <form id="editForm" method="POST" action="account_process" enctype="multipart/form-data">
16 <div id="middle" align="center">
19 <table class="profile">
22 <div id="info">Platform: Myslice</div>
26 <td class="key">Email</td>
28 <span id="emailval" class="value" >{{ person.email }}</span>
29 <button class="btn btn-default btn-xs" type="button" id="edit_email" onclick="emailAlert()" title="To change your affiliation please contact the administrator">
30 <span class="glyphicon glyphicon-question-sign"></span> Edit
35 <td class="key">Password</td>
37 <button class="btn btn-default btn-xs" type="button" title="Password" name="edit_pass" id="edit_pass">
38 <span class="glyphicon glyphicon-edit"></span> Edit
40 <span id="passval"class="value">******** </span>
41 <span class="hide_this" id="span_pass">
42 <button type="button" class="btn btn-default btn-xs" 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">
47 <td>Enter password: </td>
48 <td class="field"> <input type="password" name="password" id="password" /> </td>
51 <td>Confirm password: </td>
53 <input type="password" name="confirmpassword" id="confirmpassword" />
54 <input type="submit" class="btn btn-default btn-xs" name="submit_pass" value="Save"/>
62 <td class="key">Full Name</td>
64 <span id="nameval" class="value" >{{ fullname }} </span>
65 <span class="hide_this" id="span_name">
66 <button type="button" class="btn btn-default btn-xs" title="Cancel" id="cancel_name_change"> Cancel </button>
67 <div style='display:none;'><input type='hidden' name='nameform' /></div>
68 <input id="fname" type="text" name="fname" class="required" maxlength="200" value="{{firstname}}" />
69 <input id="lname" type="text" name="lname" class="required" maxlength="200" value="{{lastname}}" />
70 <input type="submit" class="btn btn-default btn-xs" name="submit_name" value="Save"/>
72 <button class="btn btn-default btn-xs" type="button"title="Full Name" id="edit_name">
73 <span class="glyphicon glyphicon-edit"></span> Edit
78 <td class="key">Authority</td>
80 <span id="affval" class="value">{{ authority }}</span>
81 <button class="btn btn-default btn-xs" type="button" id="edit_auth" onclick="affAlert()" title="To change your authority please contact the administrator">
82 <span class="glyphicon glyphicon-question-sign"></span> Edit
87 <td class="key">Generate Keys</td>
89 <button id="generate_keypair" class="btn btn-danger btn-xs" name="generate" type="submit" onclick="myFunction()"
90 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
95 <td class="key">Public Key</td>
97 <span id="keyval" class="value">******** </span>
98 <span class="hide_this" id="span_upload">
99 <button type="button" class="btn btn-default btn-xs" title="Cancel" id="cancel_upload"> Cancel </button>
100 <div style='display:none;'>
101 <input type='hidden' name='upload' /></div>
102 <input type="file" name="pubkey" class="required" id="pubkey"/>
103 <button class="btn btn-default btn-xs" name="upload_key" id="upload_key" type="submit" title="Upload your public key">
104 <span class="glyphicon glyphicon-upload"></span> Upload
107 <div style='display:none;'> <input type='hidden' name='dload' /> </div>
108 <button type="submit" name="dl_pubkey" class="btn btn-default btn-xs" title="Download your public key" id="dl_file">
109 <span class="glyphicon glyphicon-download"></span> Download
111 <button class="btn btn-default btn-xs" id="upload_file" type="button" title="Upload a public key">
112 <span class="glyphicon glyphicon-upload"></span> Upload
116 <tr class="even" id="pkey_row">
117 {%if 'N/A' not in user_private_key%}
118 <td class="key">Private Key </td> <!-- Hide if priv_key doesn't exist in myslice platform -->
119 <td class="value">********<a href="#">
120 <button type="submit" name="dl_pkey" class="btn btn-default btn-xs" title="Download your privaye key" id="dl_pkey">
121 <span class="glyphicon glyphicon-download"></span> Download
123 <button class="btn btn-danger btn-xs" id="delete" name="delete" type="submit" title="Delete your private key">Delete </button>
126 <td class="key">Private Key </td> <!-- Hide if priv_key doesn't exist in myslice platform -->
127 <td class="value">********<a href="#">
128 <button type="submit" name="dl_pkey" class="btn btn-default btn-xs disabled" title="Download your privaye key" id="dl_pkey">
129 <span class="glyphicon glyphicon-download"></span> Download
131 <button class="btn btn-danger btn-xs disabled" id="delete" name="delete" type="submit" title="Delete your private key">Delete </button>
137 <p class="message" id="pkey_del_msg"><b> Tradeoff:</b> Ease-of-use vs Security.<br>
138 <b>Ease-of-use:</b> Automatic account delegation. Don't delete private key.<br>
139 <b>Security:</b> Manual account delegation. Download & Delete private key.
148 <h2>Account Information</h2>
149 <h3>Principal Account <small>Account used for delegating credentials</small></h3>
150 <div id="middle" align="center">
152 <table class="table table-bordered table-hover mytable">
155 <th>Account Type</th>
156 <th>Account Delegation</th>
158 <!--<th>Pub Key</th> -->
160 {% for row in principal_acc %}
161 <tr class="border_bottom">
162 <td class="odd"> {{ row.platform_name }} </td>
163 <td class="odd"> {{ row.account_type }} </td>
164 <td class="odd"> {{ row.delegation_type }} </td>
165 <td class="odd"> {{ row.usr_hrn }} </td>
166 <!-- <td class="even"> {{ row.usr_pubkey }} </td> -->
176 <h3 id="show-pending" class="plugin-show" style="display: block;">
177 <span class="glyphicon glyphicon-chevron-right"></span>
178 <a href="#" class="plugin-tooltip" data-toggle="tooltip" data-original-title="Show plugin "Pending operations" (QueryUpdater)"></a>Credentials</h3>
180 <div id="hide-pending" class="plugin-hide" style="display: none;">
181 <span class="glyphicon glyphicon-chevron-down"></span>
182 <a href="#" class="plugin-tooltip" data-toggle="tooltip" data-original-title="Hide plugin "Pending operations" (QueryUpdater)">Credentials</a>
184 <h5>Delegated Credentials to Principal Account</h5>
185 <div id="middle" align="center">
187 <table class="mytable table table-bordered table-hover">
188 <caption><b>Delegated User Credential</b></caption>
190 <th>Expiration Date</th>
193 {% for row in my_users %}
194 <tr class="border_bottom">
195 <td class="odd"> {{ row.cred_exp }} </td>
197 <button class="btn btn-default btn-xs" name= "dl_user_cred" type="submit" title="Download User Credential">
198 <span class="glyphicon glyphicon-download"></span> Download
205 <table class="mytable table table-bordered table-hover">
206 <caption><b>Delegated Slice Credentials</b></caption>
209 <th>Expiration Date</th>
212 {% for row in my_slices %}
213 <tr class="border_bottom">
214 <td class="odd"> {{ row.slice_name }} </td>
215 <td class="odd"> {{ row.cred_exp }} </td>
217 <button class="btn btn-default btn-xs" name= "dl_{{row.slice_name}}" type="submit" title="Download Slice Credentials">
218 <span class="glyphicon glyphicon-download"></span> Download
225 <table class="mytable table table-bordered table-hover">
226 <caption><b>Delegated Authority Credentials</b></caption>
228 <th>Authority Name</th>
229 <th>Expiration Date</th>
232 {% for row in my_auths %}
233 <tr class="border_bottom">
234 <td class="odd"> {{ row.auth_name }} </td>
235 <td class="odd"> {{ row.cred_exp }} </td>
237 <button class="btn btn-default btn-xs" name= "dl_{{row.auth_name}}" type="submit" title="Download Authority Credentials">
238 <span class="glyphicon glyphicon-download"></span> Download
245 {%if '' not in my_users%}
246 <p><button class="btn btn-danger btn-lg btn-block" name= "clear_cred" type="submit" title="Clear All Credentials">Clear Credentials</button></p>
248 <p><button class="btn btn-danger btn-lg btn-block disabled" name= "clear_cred" type="submit" title="Clear All Credentials">Clear Credentials</button></p>
255 <h3 id="show-filters" class="plugin-show" style="display: block;">
256 <span class="glyphicon glyphicon-chevron-right"></span>
257 <a href="#" class="plugin-tooltip" data-toggle="tooltip" data-original-title="Show plugin "Pending operations" (QueryUpdater)"></a>TestBed Accounts</h3>
259 <div id="hide-filters" class="plugin-hide" style="display: none;">
260 <span class="glyphicon glyphicon-chevron-down"></span>
261 <a href="#" class="plugin-tooltip" data-toggle="tooltip" data-original-title="Hide plugin "Pending operations" (QueryUpdater)">TestBed Accounts</a>
263 <h5>Reference Accounts in the following testbeds</h5>
264 <div id="middle" align="center">
266 <table class="mytable table table-bordered table-hover">
269 <th>Account Type</th>
270 <th>Reference to</th>
271 <th>Remove Account</th>
273 {% for row in ref_acc %}
274 <tr class="border_bottom">
275 <td class="odd"> {{ row.platform_name }} </td>
276 <td class="odd"> {{ row.account_type }} </td>
277 <td class="odd"> {{ row.account_reference }} </td>
279 <button class="btn btn-danger btn-xs" name="delete_{{row.platform_name}}" type="submit" title="Delete account from this platform">
280 <span class="glyphicon glyphicon-minus"></span>
291 <h3 id="show-resources" class="plugin-show" style="display: block;">
292 <span class="glyphicon glyphicon-chevron-right"></span>
293 <a href="#" class="plugin-tooltip" data-toggle="tooltip" data-original-title="Show plugin "Pending operations" (QueryUpdater)"></a>Add Accounts</h3>
295 <div id="hide-resources" class="plugin-hide" style="display: none;">
296 <span class="glyphicon glyphicon-chevron-down"></span>
297 <a href="#" class="plugin-tooltip" data-toggle="tooltip" data-original-title="Hide plugin "Pending operations" (QueryUpdater)">Add Accounts</a>
300 <h5>Add reference account to the following testbeds</h5>
301 <div id="middle" align="center">
303 <table class="mytable table table-bordered table-hover">
308 {% for platform in platform_list %}
309 <tr class="border_bottom">
310 <td class="odd"> {{ platform.platform_no_access }} </td>
312 <button class="btn btn-success btn-sm" name= "add_{{platform.platform_no_access}}" type="submit" title="Add account to this platform">
313 <span class="glyphicon glyphicon-plus"></span>