var spareMasterModule = (function () {
    
    $('#spareMasterForm').bootstrapValidator({
        // To use feedback icons, ensure that you use Bootstrap v3.1.0 or later
        feedbackIcons: {
            valid: 'glyphicon glyphicon-ok',
            invalid: 'glyphicon glyphicon-remove',
            validating: 'glyphicon glyphicon-refresh'
        },
        fields: {
            brandname: {
                message: 'The brand name is not valid',
                validators: {
                    notEmpty: {
                        message: 'The brand name is required and cannot be empty'
                    }
                }
            },
            sparename: {
                message: 'The spare name is not valid',
                validators: {
                    notEmpty: {
                        message: 'The spare name is required and cannot be empty'
                    }
                }
            },
            sparetype: {
                message: 'The spare type is not valid',
                validators: {
                    notEmpty: {
                        message: 'The spare type is required and cannot be empty'
                    }
                }
            },
            sparemodel: {
                message: 'The spare model is not valid',
                validators: {
                    notEmpty: {
                        message: 'The spare model is required and cannot be empty'
                    }
                }
            }

        }
    });



})();