fix myplugin JS example on_new_record function
[unfold.git] / portal / templates / registration_view.html
index f40b831..302871e 100644 (file)
@@ -1,7 +1,9 @@
 {% extends "layout-unfold1.html" %}
 
-{% block head %}                
-<link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/register.css" />
+{% block head %}
+<link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/onelab.css" />
+<!-- xxx ideally only onelab.css but ... xxx -->
+<link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/registration.css" />
 <script type="text/javascript" src="{{STATIC_URL}}/jquery.validate.js"></script> 
 <script type="text/javascript" src="{{STATIC_URL}}/my_account.register.js"></script>
 {% endblock %}                              
 {% block unfold1_main %}        
 
 
-
 {% if errors %}
-        <ul>
-            {% for error in errors %}
-            <li>{{ error }}</li>
-            {% endfor %}
-        </ul>
-    {% endif %}
+<ul>
+  {% for error in errors %}
+  <li>{{ error }}</li>
+  {% endfor %}
+</ul>
+{% endif %}
 
 
+<div class="onelab-title well well-lg">
+  <h2>OneLab Experimenter Registration</h2>
+  <h4>For First Line Support please <a href="/portal/contact" >Contact Support</a></h3>
+</div>
+   
+<div class="well">
 <form class="cmxform" id="commentForm" method="post" action="" enctype="multipart/form-data" >
 {% csrf_token %}
  <fieldset>
-    <div class="OneLabTitle">
-        <h2>OneLab Experimenter Registration</h2>
-        <h3>For First Line Support please <a href="/portal/contact" >Contact Support</a></h3>
-    </div>
-   
    <div class="field">
      <label for="cname">First Name</label>
      <input type="text" id="firstname" name="firstname" size="25" class="required" minlength="2" value="{{ firstname}}" /> 
@@ -51,7 +53,7 @@
       <label for="auth_list">Authority</label>
       <select id="auth_list" name="authority_hrn" size="1" class="required">
         {% for authority in authorities %}
-        <option value="{{ authority.authority_hrn }}"/>{{authority.name}} ({{authority.authority_hrn}})</option>
+        <option value="{{ authority.authority_hrn }}"/>{{authority.authority_hrn}}</option>
         {% endfor %}
      </select>
      <p class="hint">Please select an authority responsible for vetting your account</p>
      <p class="hint">Retype the password</p>
    </div>
    <div class="field">
-      <label for="question">My Public Key</label>
+      <label for="question">My Keys</label>
       <select name="question" class="required" id="question">        
         <option value="generate">Generate key pairs for me </option>
         <option value="upload">Upload my public key </option>
-      </select> 
+      </select>
+               <p class="hint">Genkey: Account Delegation Automatic (Recommended)</p> 
       <?php echo $errFile; ?>
    </div>
    <div class="field" style="display:none;" id="upload_key">
       <label for="file">Upload public key</label>
       <input type="file" name="user_public_key" class="required" id="user_public_key"/>
-      <p class="hint">Upload a valid public key</p>
+      <p class="hint">Account Delegation: Manual (Advanced Users)</p>
+         <p class="warning" id="pkey_del_msg">Once your account is validated, you will have to delegate your credentials manually using SFA [Advanced users only]</p>
+
    </div>
-   <div class="field">
-     <input class="submit" type="submit" name="submit" value="Register"/>
+   <div class="field" id="register">
+     <input class="submit btn" type="submit"  name="submit" value="Register"/>
    </div>
  </fieldset>
 </form>
+</div>
 
 {% endblock %}