Difference between revisions of "MemEOL"

From Desal Wiki
Line 16: Line 16:
  
 
//validator
 
//validator
$('.form-memEOL').bootstrapValidator({
+
    $( document ).ready(function() {
        message: 'This value is not valid.',
+
    $('.form-memEOL').bootstrapValidator({
        live: 'enabled',
+
            message: 'This value is not valid.',
        feedbackIcons: {
+
            live: 'enabled',
            valid: 'glyphicon glyphicon-ok',
+
            feedbackIcons: {
            invalid: 'glyphicon glyphicon-remove',
+
                valid: 'glyphicon glyphicon-ok',
            validating: 'glyphicon glyphicon-refresh'
+
                invalid: 'glyphicon glyphicon-remove',
        },
+
                validating: 'glyphicon glyphicon-refresh'
        submitButtons: '.memEOL-submit',
+
            },
        fields: {
+
            submitButtons: '.memEOL-submit',
        damagedMembranes: {
+
            fields: {
        validators: {
+
            damagedMembranes: {
        notEmpty: {
+
            validators: {
        message: 'Please indicate if the membrane has been damaged.'
+
            notEmpty: {
        }
+
            message: 'Please indicate if the membrane has been damaged.'
        }
+
            }
        },
+
            }
        testedPermeability: {
+
            },
                    notEmpty: {
+
            testedPermeability: {
                        message: 'The permeability of your membranes is a required parameter for this decision tool.'
+
                        notEmpty: {
                    },
+
                            message: 'The permeability of your membranes is a required parameter for this decision tool.'
                    stringLength: {
+
                        },
                        max: 100,
+
                        stringLength: {
                        message: 'Permeability value is too long.'
+
                            max: 100,
                    },
+
                            message: 'Permeability value is too long.'
                    regexp: {
+
                        },
                        regexp: /^[0-9]+([\.][0-9]+)?$/,
+
                        regexp: {
                        message: 'Please enter a number (eg. 2.0).'
+
                            regexp: /^[0-9]+([\.][0-9]+)?$/,
                    }       
+
                            message: 'Please enter a number (eg. 2.0).'
        },
+
                        }       
        NaClRejection: {
+
            },
                    notEmpty: {
+
            NaClRejection: {
                        message: 'The salt rejection of your membranes is a required parameter for this decision tool.'
+
                        notEmpty: {
                    },
+
                            message: 'The salt rejection of your membranes is a required parameter for this decision tool.'
                    stringLength: {
+
                        },
                        max: 20,
+
                        stringLength: {
                        message: 'Salt rejection value is too long.'
+
                            max: 20,
                    },
+
                            message: 'Salt rejection value is too long.'
                    regexp: {
+
                        },
                        regexp: /^[0-9][0-9]?([\.][0-9]+)?$/,
+
                        regexp: {
                        message: 'Please enter a number between 0 and 100.'
+
                            regexp: /^[0-9][0-9]?([\.][0-9]+)?$/,
                    }         
+
                            message: 'Please enter a number between 0 and 100.'
        }
+
                        }         
         }
+
            }
 +
            }
 +
         });
 
     });
 
     });
 
//end validator
 
//end validator

Revision as of 02:45, 30 October 2014

Introduction text

Do you suspect there is any physical damage to the membranes that would prevent them from being reused?

What is the tested permeability of your membranes (LMH/bar)?

What is the tested NaCl rejection of your membranes? (% NaCl rejection)


Please order the following criteria in the order of importance for your project (drag and drop):

  • Financial
  • Effort required
  • Environmental impact
  • Landfill impact
  • Public perception
Most important Least important