latest changes requested to remove ID number and date of birth
[namibia] / public / js / app / brochure-workspace / register.js
index c262135..4ab2aa1 100644 (file)
                                        value : '',
                                        maxlength : 5
                                },
-                               'idNumber' : {
-                                       type  : 'input',
-                                       id    : 'idNumber',
-                                       title : 'ID Number',
-                                       value : '',
-                                       maxlength : 20,
-                                       onChange  : function() {
-                                               var dig = $(this).val().substring(0, 6);
-                                               $('#dateOfBirth').val(
-                                                               '19' + dig.substring(0, 2) +
-                                                               '-' + dig.substring(2, 4) +
-                                                               '-' + dig.substring(4, 6)
-                                                               );
-                                       }
-                               },
-                               'dateOfBirth' : {
-                                       type  : 'date',
-                                       id    : 'dateOfBirth',
-                                       title : 'Date of birth',
-                                       style : 'datepicker',
-                                       value : ''
-                               },
+                               //'idNumber' : {
+                               //      type  : 'input',
+                               //      id    : 'idNumber',
+                               //      title : 'ID Number',
+                               //      value : '',
+                               //      maxlength : 20,
+                               //      onChange  : function() {
+                               //              var dig = $(this).val().substring(0, 6);
+                               //              $('#dateOfBirth').val(
+                               //                              '19' + dig.substring(0, 2) +
+                               //                              '-' + dig.substring(2, 4) +
+                               //                              '-' + dig.substring(4, 6)
+                               //                              );
+                               //      }
+                               //},
+                               //'dateOfBirth' : {
+                               //      type  : 'date',
+                               //      id    : 'dateOfBirth',
+                               //      title : 'Date of birth',
+                               //      style : 'datepicker',
+                               //      value : ''
+                               //},
                                'mobile' : {
                                        type  : 'mobile',
                                        id    : 'mobile',
                                        pin: {required: true, digits: true},
                                        confirmPin: {required: true, digits: true, equalTo: "#pin"},
                                        //idNumber: {required: true, minlength: 13, maxlength: 13, digits: true},
-                                       idNumber: {required: true, minlength: 3, maxlength: 20, digits: true},
-                                       dateOfBirth: {required: true, dateISO: true},
+                                       //idNumber: {required: true, minlength: 3, maxlength: 20, digits: true},
+                                       //dateOfBirth: {required: true, dateISO: true},
                                        mobile: {required: true, mobile: true},
 
                                        //contactFirstName: {required: true},