').appendTo(me.section);
me.make_field(df, fieldwrapper);
break;
default:
var fieldwrapper = $('
')
.appendTo(me.section);
me.make_field(df, fieldwrapper);
}
});
},
make_field: function(df, parent) {
var fieldobj = make_field(df, this.doctype, parent.get(0), this.frm);
this.frm.fields.push(fieldobj);
this.frm.fields_dict[df.fieldname] = fieldobj;
},
make_section: function(df) {
if(this.section) {
$("
").appendTo(this.wrapper);
}
this.section = $('
').appendTo(this.wrapper);
this.frm.sections.push(this.section);
if(df) {
if(df.label) {
$('
' + df.label + "
").appendTo(this.section);
}
if(df.description) {
$('
' + df.description + '
').appendTo(this.section);
}
this.frm.fields_dict[df.fieldname] = this.section;
}
return this.section;
},
refresh: function() {
}
})