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.

75 lines
1.7 KiB

6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. {
  2. xtype: 'form',
  3. labelWidth: 75, // label settings here cascade unless overridden
  4. frame: false,
  5. bodyStyle:'padding:5px 5px 0',
  6. width: 190,
  7. defaults: {
  8. width: 190
  9. },
  10. defaultType: 'textfield',
  11. items: [{
  12. xtype: 'panel',
  13. height: 100,
  14. html: '<p align="center"><img src="/style/assets/12_node.png"><br/>IP Camera<br/></p>'
  15. },{
  16. xtype:'fieldset',
  17. //checkboxToggle:true,
  18. collapsible: true,
  19. title: 'Information',
  20. autoHeight: true,
  21. defaults: {
  22. width: 180
  23. },
  24. defaultType: 'textfield',
  25. collapsed: false,
  26. items :[{
  27. fieldLabel: 'First Name',
  28. name: 'first',
  29. allowBlank:false
  30. },{
  31. fieldLabel: 'Last Name',
  32. name: 'last'
  33. },{
  34. fieldLabel: 'Company',
  35. name: 'company'
  36. }, {
  37. fieldLabel: 'Email',
  38. name: 'email',
  39. vtype:'email'
  40. }]
  41. },{
  42. xtype:'fieldset',
  43. title: 'Sockets',
  44. collapsible: true,
  45. autoHeight:true,
  46. defaults: {
  47. width: 168
  48. },
  49. defaultType: 'textfield',
  50. items :[{
  51. xtype: 'panel',
  52. html: '<p align="center" style="padding: 5px; color: yellow; background-color: green;">Com Com Com</p>'
  53. },{
  54. xtype: 'button',
  55. text: 'Add Socket',
  56. handler: function(){
  57. var wAddSocket = new Ext.Window({
  58. title: 'Add Socket',
  59. width: 640,
  60. height: 480,
  61. items:[{
  62. xtype: 'combo',
  63. text: 'Socket Type'
  64. }]
  65. });
  66. wAddSocket.show();
  67. }
  68. }]
  69. }],
  70. buttons: [{
  71. text: 'Save'
  72. },{
  73. text: 'Cancel'
  74. }]
  75. }