%def name="renderControl(id_name, value, props)" > %if props.html_type == "checkbox": %else: %if getattr(props, 'html_help', False):
${props.html_help}
%endif %endif %def> <%def name="buildform(schema, values, errors)"> <% values = values[schema.form_id] errors = errors[schema.form_id] %> %def> <%def name="buildValidators(root)"> ${root}.find("form").each(function(index, form){ $(form).validate({ errorClass: "help-inline" ,errorElement: "span" ,highlight: function (element, errorClass, validClass) { $(element).closest(".control-group").addClass("error"); } , unhighlight: function (element, errorClass, validClass) { $(element).closest(".control-group").removeClass("error"); } }); }); %def>