Registration: Upload key and Confirm password back again
authorYasin <mohammed-yasin.rahman@lip6.fr>
Wed, 25 Sep 2013 15:55:34 +0000 (17:55 +0200)
committerYasin <mohammed-yasin.rahman@lip6.fr>
Wed, 25 Sep 2013 15:55:34 +0000 (17:55 +0200)
portal/static/js/my_account.register.js
portal/templates/registration_view.html

index bb7fba4..73b76ac 100644 (file)
@@ -8,7 +8,7 @@ Copyright 2013, UPMC Sorbonne Universités / LIP6
 */
 jQuery(document).ready(function(){
     
-    jQuery("#commentForm").validate({
+    jQuery("#registrationForm").validate({
         rules: {
           password: { 
                 required: true
@@ -19,7 +19,7 @@ jQuery(document).ready(function(){
         }
     });
     // upload button
-    jQuery("#question").change(function(){
+    jQuery("#key-policy").change(function(){
         if(this.value=="upload"){
             jQuery("#upload_key").show();
         }else{
index 18759f4..cc5e86d 100644 (file)
@@ -92,7 +92,7 @@
     <div class="form-group" style="display:none;" id="upload_key">
       <label for="file" class="col-md-4 control-label">Upload public key</label>
       <div class="col-md-4">
-       <input type="file" name="user_public_key" class="form-control" id="user_public_key" required/>
+       <input type="file" name="user_public_key" class="form-control" id="user_public_key"/>
        <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="col-md-4"><p class="form-hint">Account Delegation: Manual (Advanced Users)</p></div>