Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. Ext.define("MODIFE.view.administration.Roles",{
  2. extend: "Ext.panel.Panel",
  3. xtype: "app-administration-roles",
  4. controller: "administration-roles",
  5. viewModel: {
  6. type: "administration-users"
  7. },
  8.  
  9. title: "Roles",
  10. items:[
  11. {
  12. title: 'Búsqueda de Roles',
  13. frame: true,
  14. resizable: true,
  15. xtype: 'form',
  16. layout: 'column',
  17.  
  18. defaults: {
  19. layout: 'form',
  20. xtype: 'container',
  21. defaultType: 'textfield',
  22. style: 'width: 50%'
  23. },
  24.  
  25. items: [{
  26. items: [{
  27. fieldLabel: 'Rol',
  28. xtype: 'combobox',
  29. store: 'Roles',
  30. displayField: 'Description',
  31. valueField: 'RoleId',
  32. }]
  33. }, {
  34. items: [
  35. { fieldLabel: 'Estatus', xtype: 'combobox' },
  36. ]
  37. }],
  38.  
  39. buttons: [
  40. { text: 'Nuevo' },
  41. { text: 'Buscar' }
  42. ]
  43. },
  44. {
  45. layout: 'fit',
  46. items: [{
  47. xtype: 'grid',
  48. id: 'rolesGrid',
  49. title: 'Listado de Roles',
  50. store: 'Roles',
  51. columns: [
  52. { text: 'Rol', dataIndex: 'Description', flex: 2},
  53. { text: 'Estatus', dataIndex: 'Status', flex: 2},
  54. ]
  55. }]
  56. }]
  57. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement