Web Interface For Lite Argus Control modules
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.

71 lines
1.9 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. {
  2. xtype: 'form',
  3. labelWidth: 40, // 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/4_node.png"><br/>%%%DEV_LABEL%%%<br/></p>'
  11. },{
  12. xtype:'fieldset',
  13. //checkboxToggle:true,
  14. collapsible: true,
  15. title: 'Device',
  16. autoHeight: true,
  17. defaults: {
  18. //width: 180
  19. },
  20. collapsed: false,
  21. items :[{
  22. xtype: 'hidden',
  23. id: 'dev_name',
  24. name: 'dev_name',
  25. value: '%%%DEV_LABEL%%%'
  26. },{
  27. xtype: 'hidden',
  28. id: 'max_range',
  29. name: 'max_range',
  30. value: %%%MAX_RANGE%%%
  31. },{
  32. xtype: 'hidden',
  33. id: 'dev_id',
  34. name: 'dev_id',
  35. value: %%%DEVICE_ID%%%
  36. },{
  37. xtype: 'panel',
  38. html: '<p align="center" style="padding: 5px; color: yellow; background-color: green;">Range: %%%MAX_RANGE%%%</p>'
  39. },{
  40. xtype: 'panel',
  41. html: '<p align="center" style="padding: 5px; color: yellow; background-color: green;">Dev Address: %%%DEVICE_ID%%%</p>'
  42. }]
  43. },{
  44. xtype: 'button',
  45. text: 'Change Settings',
  46. width: '100%',
  47. handler: function(){
  48. showSettings(%%%NODEID%%%);
  49. }
  50. },{
  51. xtype:'fieldset',
  52. title: 'LRF Settings',
  53. collapsible: true,
  54. autoHeight: true,
  55. defaults: {
  56. //width: 168
  57. },
  58. items :[{
  59. xtype: 'panel',
  60. html: '<p align="center" style="padding: 5px; color: yellow; background-color: green;">Order: %%%M_ORDER%%%</p>'
  61. },{
  62. xtype: 'panel',
  63. html: '<p align="center" style="padding: 5px; color: yellow; background-color: green;">Offset: %%%M_OFFSET%%%</p>'
  64. },{
  65. xtype: 'panel',
  66. html: '<p align="center" style="padding: 5px; color: yellow; background-color: green;">Width: %%%M_WIDTH%%%</p>'
  67. },{
  68. xtype: 'panel',
  69. html: '<p align="center" style="padding: 5px; color: yellow; background-color: green;">SST: %%%M_SST%%%</p>'
  70. }]
  71. }]
  72. }