styling for the demos
[myslice.git] / portal / templates / account-view.html
index 8f2e019..60f05bc 100644 (file)
@@ -1,39 +1,26 @@
 {% extends "layout-unfold1.html" %}
 
 {% block head %}
-<link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/account_view_html.css" />
-<script type="text/javascript" src="{{STATIC_URL}}/jquery.validate.js"></script> 
-<script type="text/javascript" src="{{STATIC_URL}}/my_account.edit_profile.js"></script>
-<script type="text/javascript" src="{{STATIC_URL}}/my_account.register.js"></script>
+<link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/onelab.css"/>
+<link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/account_view.css" />
+<script type="text/javascript" src="{{STATIC_URL}}/js/jquery.validate.js"></script> 
+<script type="text/javascript" src="{{STATIC_URL}}/js/my_account.edit_profile.js"></script>
+<script type="text/javascript" src="{{STATIC_URL}}/js/my_account.register.js"></script>
 {% endblock %}
 
 {% block unfold1_main %}
 
+<h2>MySlice  Account</h2>
 
-<h2>Platform Access</h2>
-<div id="middle" align="center">
-       <div class="well">
-               <table class="mytable"> 
-                       <tr class="odd"> 
-                       <th>Platform</th> 
-                       <th>Account Type</th> 
-                       <th>user_hrn</th>
-                       <th>Pub Key</th>
-               </tr>   
-                       {% for row in data %}         
-                       <tr class="even">
-                       <td class="odd"> {{ row.platform_name }} </td>
-                       <td class="even"> {{ row.account_type }} </td>
-                               <td class="odd"> {{ row.usr_hrn }}  </td>
-                       <td class="even"> {{ row.usr_pubkey }} </td>
-               </tr> 
-                       {%endfor%}               
-               </table>
-       </div>
-</div>
+{% if messages %}
+<ul class="messages">
+    {% for message in messages %}
+    <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
+    {% endfor %}
+</ul>
+{% endif %}
 
 
-<h2>MySlice  Account</h2>
 <div id="middle" align="center">
        <div class="well">
                <form id="editForm"  method="POST" action="account_process" enctype="multipart/form-data">
@@ -48,7 +35,8 @@
                                <td class="key">Email</td>
                                <td class="value">
                                                <span id="emailval" class="value" >{{ person.email }}</span>
-                                               <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;">
+                                               <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;">
                                        </td>
                        </tr>
                        <tr class="odd">
                                        <td class="value">
                                                <span id="affval" class="value">{{ authority }}</span>
                                                <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; ">
+                                                        style="height: 20px; width: 20px; position: absolute; left: 625px; left: 900px; ">
                                        </td>
                                </tr>
                                <tr class="even">
                                        <td class="key">Generate Keys</td>
                                        <td> 
-                                               <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>
+                                               <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>
                                </td> 
                        </tr>
                        <tr class="odd">
                                </tr>
                                <tr class="odd">
                                <td colspan="2">
-                                       <p class="warning" id="pkey_del_msg"> For better security we recommend that you download and delete your private key from the server. 
-                                                                                                                               Always store your private key in a secure location. 
+                                       <p class="message" id="pkey_del_msg"><b> Tradeoff:</b> Ease-of-use vs Security.<br>
+                                                       <b>Ease-of-use:</b> Automatic account delegation. Don't delete private key.<br>
+                                                       <b>Security:</b> Manual account delegation. Download & Delete private key.
                                                </p>
                                </td>
                                </tr>
        </div>
 </div>
 
+<h2>Platform Access</h2>
+<div id="middle" align="center">
+       <div class="well">
+               <table class="mytable"> 
+                       <tr class="odd"> 
+                       <th>Platform</th> 
+                       <th>Account Type</th> 
+                       <th>user_hrn</th>
+                       <th>Pub Key</th>
+               </tr>   
+                       {% for row in data %}         
+                       <tr class="border_bottom">
+                       <td class="odd"> {{ row.platform_name }} </td>
+                       <td class="even"> {{ row.account_type }} </td>
+                               <td class="odd"> {{ row.usr_hrn }}  </td>
+                       <td class="even"> {{ row.usr_pubkey }} </td>
+               </tr> 
+                       {%endfor%}               
+               </table>
+       </div>
+</div>
+
+
+
 {% endblock %}