chughgaurav

MyApp.view.forms

Apr 3rd, 2012
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. Ext.define('MyApp.view.Forms', {
  2. extend: 'Ext.Container',
  3. xtype: 'formsPage',
  4.  
  5. config: {
  6. title: 'Patient Registration',
  7. iconCls: 'user',
  8. layout: {
  9. type: 'card'
  10. },
  11. items: [
  12. {
  13. xtype: 'fieldset',
  14. title: 'Patient Registration1',
  15. items: [
  16. {
  17. xtype: 'textfield',
  18. label: 'Names',
  19. name: 'name'
  20. },
  21. {
  22. xtype: 'textfield',
  23. label: 'City',
  24. name: 'city'
  25. },
  26. {
  27. xtype: 'button',
  28. ui: 'action',
  29. text: 'Submit',
  30. action: 'submitInfoForm'
  31. }
  32. ]
  33. },
  34. {
  35. xtype: 'fieldset',
  36. title: 'Patient Registration2',
  37. items: [
  38. {
  39. xtype: 'textfield',
  40. label: 'Phone',
  41. name: 'phone'
  42. },
  43. {
  44. xtype: 'textfield',
  45. label: 'Country',
  46. name: 'conutry'
  47. }
  48. ]
  49. }
  50. ]
  51.  
  52.  
  53. }
  54. });
  55. MyApp.container = Ext.create('MyApp.view.Forms', {
  56. id: 'infoForm'
  57. });
Advertisement
Add Comment
Please, Sign In to add comment