Web UI for ARGUS server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
1.9 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. {
  2. xtype: 'form',
  3. labelWidth: 75, // label settings here cascade unless overridden
  4. frame: false,
  5. bodyStyle:'padding:5px 5px 0',
  6. defaultType: 'textfield',
  7. items: [{
  8. xtype: 'panel',
  9. height: 100,
  10. html: '<p align="center"><img src="/style/assets/%%%TYPE%%%_node.png"><br/>%%%NAME%%%<br/></p>'
  11. },{
  12. xtype:'fieldset',
  13. //checkboxToggle:true,
  14. collapsible: true,
  15. title: 'Location',
  16. autoHeight: true,
  17. defaults: {
  18. //width: 180
  19. },
  20. defaultType: 'textfield',
  21. collapsed: false,
  22. items :[{
  23. fieldLabel: 'Latitude',
  24. name: 'slat',
  25. value: %%%LAT%%%,
  26. id: 'slat',
  27. allowBlank:false
  28. },{
  29. fieldLabel: 'Longitude',
  30. id: 'slon',
  31. value: %%%LON%%%,
  32. name: 'slon',
  33. allowBlank:false
  34. },{
  35. fieldLabel: 'Altitude',
  36. id: 'salt',
  37. value: %%%ALT%%%,
  38. name: 'salt',
  39. allowBlank:false
  40. },{
  41. xtype: 'button',
  42. text: 'Set To Anchor Position',
  43. width: '100%',
  44. handler: setNodeLocationToAnchor
  45. }]
  46. },{
  47. xtype:'fieldset',
  48. title: 'Orientation',
  49. collapsible: true,
  50. autoHeight:true,
  51. defaults: {
  52. //width: 168
  53. },
  54. defaultType: 'textfield',
  55. items :[{
  56. fieldLabel: 'Roll',
  57. id: 'sroll',
  58. value: %%%ROLL%%%,
  59. name: 'sroll',
  60. allowBlank:false
  61. },{
  62. fieldLabel: 'Pitch',
  63. id: 'spitch',
  64. value: %%%PITCH%%%,
  65. name: 'spitch',
  66. allowBlank:false
  67. },{
  68. fieldLabel: 'Yaw',
  69. id: 'syaw',
  70. value: %%%YAW%%%,
  71. name: 'syaw',
  72. allowBlank:false
  73. },{
  74. xtype: 'button',
  75. width: '100%',
  76. text: 'Edit Orientation',
  77. handler: orientationEditor
  78. }]
  79. },{
  80. xtype: 'button',
  81. text: 'Update',
  82. width: '100%',
  83. handler: updateLocationOrientation
  84. }]
  85. }