Ext.define("ExternalAgent.view.AssignExternalAgent",{extend:"Ext.form.Panel",alias:"widget.assignexternalagent",id:"assignexternalagent",ui:"simplePanel simplePanelHeaderBorder",title:assignTitle,margin:"8 8 0 8",requires:["utilities.ScrollCombo"],fieldDefaults:{labelAlign:"top",labelSeparator:" "},layout:{type:"vbox",align:"stretch"},items:[{xtype:"container",layout:{type:"hbox",pack:"center"},margin:"0 0 20 0",items:[{xtype:"container",width:800,cls:"formOuter",padding:10,layout:{type:"hbox",pack:"center"},items:[{xtype:"scrollcombo",cls:"dropdown",id:"extAgent",labelAlign:"left",name:"extAgent",fieldLabel:"External agent",fieldName:"extAgent",displayField:"displayField",valueField:"valueField",queryMode:"local",editable:true,width:300,parent:this,store:new Ext.data.Store({fields:["displayField","valueField"],data:[]})}]}]},{xtype:"container",layout:{type:"hbox",pack:"center"},border:false,style:"border: 1px solid red",items:[{xtype:"container",width:385,layout:{type:"hbox",pack:"start"},items:[{xtype:"displayfield",value:extAgentLbl,}]},{xtype:"tbspacer",width:30},{xtype:"container",border:false,style:"border: 1px solid blue",width:385,layout:{type:"hbox",pack:"end"},items:[{xtype:"scrollcombo",cls:"dropdown",id:"otherExtAgent",name:"otherExtAgent",fieldLabel:otherExtAgentLbl,labelAlign:"left",fieldName:"otherExtAgent",displayField:"displayField",valueField:"valueField",queryMode:"local",editable:true,width:385,disabled:true,labelWidth:120,parent:this,store:new Ext.data.Store({fields:["displayField","valueField"],data:[]})}]}]},{xtype:"container",layout:{type:"hbox",pack:"center",align:"stretch"},flex:1,margin:"5 10 10 10",items:[{xtype:"itemselector",cls:"multiselect",name:"itemselectextagent",fieldName:"itemselectextagent",id:"itemselectextagent",buttons:["add","remove"],buttonsText:{add:"Disassociate",remove:"Associate"},store:new Ext.data.Store({fields:["displayField","valueField"],data:[]}),displayField:"displayField",valueField:"valueField",height:380,width:800}]},{xtype:"container",id:"assignhiddencontainer",hidden:true}],dockedItems:[{xtype:"toolbar",dock:"bottom",padding:10,layout:{type:"hbox",pack:"center"},ui:"toolbarBgWithTopBorder",items:[{xtype:"button",ui:"newButtonSmall",text:"Update",id:"UpdateBTN"}]}],tools:[{xtype:"button",cls:"backbutton",id:"backbutton",iconCls:"iconBack",text:BckLbl}],listeners:{boxready:function(){new Ext.ToolTip({target:document.getElementById("assignTitle"),anchor:"top",anchorOffset:42,mouseOffset:[-55,0],html:extPageDesc,cls:"adminInfoTooltip"});
}}});