Medialist / medialist-app

Mission: Increase PR team productivity 10x
0 stars 1 forks source link

Add Bootstrap Validator #72

Open bmordan opened 9 years ago

bmordan commented 9 years ago

meteor add rgoomar:bootstrap-validator

Then use it on forms like this:

Template.newTemplate.rendered = function(){
    $('.form-horizontal').bootstrapValidator({
        message: 'This value is not valid',
        feedbackIcons: {
            valid: 'glyphicon glyphicon-ok',
            invalid: 'glyphicon glyphicon-remove',
            validating: 'glyphicon glyphicon-refresh'
        },
        fields: {
            username: {
                message: 'The username is not valid',
                validators: {
                    notEmpty: {
                        message: 'UserName is mandatory'
                    }
                }
            }
        }
    });
}
olizilla commented 8 years ago

Hold off until we get screen layouts from inktrap.