a broker system for Supercredit
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.

89 lines
4.0KB

  1. var broker_form =
  2. {
  3. "view": "popup",
  4. "id": "broker_add_popup",
  5. "css": "broker_add_popup",
  6. "position": "center",
  7. head: "This window can be moved",
  8. close: true,
  9. "modal": true,
  10. "move": true,
  11. "width": 800,
  12. "body": {
  13. "rows": [
  14. {
  15. "view": "toolbar",
  16. "css": "webix_dark",
  17. "paddingX": 5,
  18. "cols": [
  19. { "view": "icon", "icon": "mdi mdi-account" },
  20. { "view": "label", "label": "Add/Edit Broker" },
  21. { "view": "button", "label": "x", "width": 50 , click: close_broker_form}
  22. ]
  23. },
  24. {
  25. "view": "form",
  26. "margin": 40,
  27. "rows": [
  28. {
  29. "margin": 10,
  30. "rows": [
  31. { "view": "template", "type": "section", "template": "Broker Details" },
  32. {
  33. "cols": [
  34. {
  35. "rows": [
  36. { "view": "text", "placeholder": "Type here...", "label": "First Name", "labelWidth": 100 },
  37. { "label": "Last Name", "view": "text", "height": 38, "labelWidth": 100 },
  38. { "label": "Password", "view": "text", "height": 38, "labelWidth": 100, "type": "password" },
  39. { "label": "Phone", "view": "text", "labelWidth": 100, "type": "number" },
  40. {
  41. "options": "data/demo_loan_id.json",
  42. "label": "Values",
  43. "value": "1,2",
  44. "view": "multicombo",
  45. "height": 38,
  46. "labelWidth": 100
  47. },
  48. {
  49. "label": "Status",
  50. "value": "One",
  51. "options": [
  52. "Enable",
  53. " Disable"
  54. ],
  55. "view": "radio",
  56. "labelWidth": 100
  57. },
  58. { "view": "template", "template": "You can place any widget here..", "role": "placeholder" }
  59. ]
  60. },
  61. {
  62. "rows": [
  63. { "view": "chart", "width": 400, "pieInnerText": "#value#", "label": "#month#", "url": "data/demo_chart.json" }
  64. ]
  65. }
  66. ]
  67. }
  68. ]
  69. },
  70. {
  71. "margin": 10,
  72. "cols": [
  73. { "view": "template", "template": " ", "role": "placeholder", "borderless": true },
  74. { "view": "button", "label": "Discard", "css": "webix_transparent", "align": "right", "width": 120 , click : close_broker_form},
  75. { "view": "button", "css": "webix_primary", "label": "Save", "align": "right", "width": 120 , click : close_broker_form}
  76. ]
  77. }
  78. ]
  79. }
  80. ]
  81. }
  82. };
  83. var broker_form_popup = webix.ui(broker_form);
  84. function close_broker_form(){
  85. broker_form_popup.hide();
  86. }