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.

79 lines
1.8 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. },{
  42. xtype:'fieldset',
  43. title: 'Orientation',
  44. collapsible: true,
  45. autoHeight:true,
  46. defaults: {
  47. //width: 168
  48. },
  49. defaultType: 'textfield',
  50. items :[{
  51. fieldLabel: 'Roll',
  52. id: 'sroll',
  53. value: %%%ROLL%%%,
  54. name: 'sroll',
  55. allowBlank:false
  56. },{
  57. fieldLabel: 'Pitch',
  58. id: 'spitch',
  59. value: %%%PITCH%%%,
  60. name: 'spitch',
  61. allowBlank:false
  62. },{
  63. fieldLabel: 'Yaw',
  64. id: 'syaw',
  65. value: %%%YAW%%%,
  66. name: 'syaw',
  67. allowBlank:false
  68. },{
  69. xtype: 'button',
  70. width: '100%',
  71. text: 'Edit Orientation',
  72. handler: orientationEditor
  73. }]
  74. },{
  75. xtype: 'button',
  76. text: 'Update',
  77. width: '100%',
  78. handler: updateLocationOrientation
  79. }]
  80. }