FR.addFieldSet={};FR.addFieldSet.formPanel=new FR.components.editForm({title:"Add field set",layout:"form",autoScroll:true,defaults:{labelWidth:140},items:[{xtype:"fieldset",title:"Basic Info",width:500,defaults:{width:250},items:[{xtype:"textfield",fieldLabel:"Field set name",name:"name",value:""},{xtype:"textarea",fieldLabel:"Description",name:"description",value:""},{xtype:"checkbox",boxLabel:"Generic field set",width:300,value:1,helpText:"A generic field set is one that is available for every file by default.",name:"generic",checked:false}]},{xtype:"fieldset",title:"Fields",width:500,items:[{xtype:"displayfield",value:"Fields can be added after creating the set."}]}],tbar:[{text:"Add field set",cls:"fr-btn-primary",ref:"saveBtn",handler:function(){var editForm=this.ownerCt.ownerCt;var opts={url:FR.URLRoot+"/?module=metadata&section=cpanel&page=add_fieldset&action=add",maskText:"Saving changes..."};editForm.submitForm(opts)}}]});Ext.getCmp("gridTabPanel").add(FR.addFieldSet.formPanel);FR.addFieldSet.formPanel.show();