Ext.define("RemoteAgent.view.AssignRemoteAgent",{extend:"Ext.form.Panel",alias:"widget.assignremoteagent",id:"assignremoteagent",ui:"simplePanel simplePanelHeaderBorder",requires:["utilities.ScrollCombo"],title:assignTitle,margin:"8 8 0 8",scroll:true,autoScroll:true,fieldDefaults:{labelAlign:"top",labelSeparator:" "},layout:{type:"vbox",align:"stretch"},items:[{xtype:"container",id:"warningMsg",html:"aaa",margin:"10 0"},{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:"rmtAgent",name:"rmtAgent",labelAlign:"left",fieldLabel:"Remote agent",fieldName:"rmtAgent",displayField:"displayField",valueField:"valueField",queryMode:"local",editable:true,width:250,parent:this,store:new Ext.data.Store({fields:["displayField","valueField"],data:[]})}]}]},{xtype:"container",layout:{type:"hbox",pack:"center"},border:false,items:[{xtype:"container",width:385,layout:{type:"hbox",pack:"start"},items:[{xtype:"displayfield",value:'<div style="font-weight: bold">'+remAgentLbl+"</div>",}]},{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:"otherRmtAgent",name:"otherRmtAgent",fieldLabel:'<div style="font-weight: bold">'+otherRemAgentLbl+"</div>",labelAlign:"left",fieldName:"otherRmtAgent",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:"itemselectorsm",cls:"multiselect",name:"itemselectremoteagent",fieldName:"itemselectremoteagent",id:"itemselectremoteagent",buttons:["remove"],buttonsText:{remove:"Associate"},store:new Ext.data.Store({fields:["displayField","valueField"],data:[]}),displayField:"displayField",valueField:"valueField",height:380,width:800}]},{xtype:"container",id:"assignhiddenRemotecontainer",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:bckLabel}],listeners:{boxready:function(){new Ext.ToolTip({target:document.getElementById("assignTitle"),anchor:"top",anchorOffset:42,mouseOffset:[-55,0],html:assignRmtPageDesc+".",cls:"adminInfoTooltip"});
}}});