Bookings.window.DisplayBooking = function(config) {
config = config || {};
Ext.applyIf(config,{
title: _('booking_display')
,url: Bookings.config.connector_url
,labelWidth: 150
,width: 500
....
Cispeo.window.updateCompany = function(config){
config = config || {};
this.ident = config.ident || ’cpoucompany’+Ext.id();
Ext.applyIf(config,{
title: _(’cispeo.company_update’),
id: this.ident,
width: 600,
url: Cispeo.config.connector_url,
action: ’mgr/company/update’,
fields: [{
xtype: ’hidden’,
name: ’id’,
id: ’cispeo-’+this.ident+’-id’
},{
xtype: ’textfield’,
fieldLabel: _(’name’),
labelStyle: ’font-weight:bold; color:green; width: 190px;’,
name: ’name’,
id: ’cispeo-’+this.ident+’-name’,
width: 300,
allowBlank: false
},
<label for="ext-comp-1134" style="width: 100px; " class="x-form-item-label" id="ext-gen263">Name:</label>

createForm: function(config) {
config = config || {};
Ext.applyIf(config,{
labelAlign: 'right'
,labelWidth: 100
,frame: true
,border: false
,bodyBorder: false
,autoHeight: true
,errorReader: MODx.util.JSONReader
,url: this.config.url
,baseParams: this.config.baseParams || {}
,fileUpload: this.config.fileUpload || false
});
return new Ext.FormPanel(config);
}