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.

58 lines
1.5 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*!
  2. * Ext JS Library 3.3.1
  3. * Copyright(c) 2006-2010 Sencha Inc.
  4. * licensing@sencha.com
  5. * http://www.sencha.com/license
  6. */
  7. Ext.onReady(function() {
  8. var form = new Ext.form.FormPanel({
  9. baseCls: 'x-plain',
  10. labelWidth: 55,
  11. url: 'save-form.php',
  12. layout: {
  13. type: 'vbox',
  14. align: 'stretch' // Child items are stretched to full width
  15. },
  16. defaults: {
  17. xtype: 'textfield'
  18. },
  19. items: [{
  20. xtype: 'combo',
  21. store: ['test@example.com', 'someone-else@example.com' ],
  22. plugins: [ Ext.ux.FieldReplicator, Ext.ux.FieldLabeler ],
  23. fieldLabel: 'Send To',
  24. name: 'to'
  25. },{
  26. plugins: [ Ext.ux.FieldLabeler ],
  27. fieldLabel: 'Subject',
  28. name: 'subject'
  29. }, {
  30. xtype: 'textarea',
  31. fieldLabel: 'Message text',
  32. hideLabel: true,
  33. name: 'msg',
  34. flex: 1 // Take up all *remaining* vertical space
  35. }]
  36. });
  37. var w = new Ext.Window({
  38. title: 'Compose message',
  39. collapsible: true,
  40. maximizable: true,
  41. width: 750,
  42. height: 500,
  43. minWidth: 300,
  44. minHeight: 200,
  45. layout: 'fit',
  46. plain: true,
  47. bodyStyle: 'padding:5px;',
  48. buttonAlign: 'center',
  49. items: form,
  50. buttons: [{
  51. text: 'Send'
  52. },{
  53. text: 'Cancel'
  54. }]
  55. });
  56. w.show();
  57. });