3 var ui = window.app.ns("ui");
4 var ux = window.app.ns("ux");
5 var ut = window.app.ns("ut");
7 window.builder = function() {
8 var form = new ux.FieldCollection({
26 name: "check_required",
33 { tag: "DIV", children: form.fields.map( function( field ) {
34 return { tag: "LABEL", cls: "uiPanelForm-field", children: [
35 { tag: "DIV", cls: "uiPanelForm-label", children: [ field.label, ut.require_template(field) ] },
38 }).concat( new ui.Button({
39 label: "Evaluate Form",
40 onclick: function() { console.log( "valid=" + form.validate(), form.getData() ); }