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.

139 lines
3.9KB

  1. function close(id, event) {
  2. loan_add_popup.hide();
  3. }
  4. var loan_add_form = {
  5. "view": "popup",
  6. "id": "loan_add_popup",
  7. "css": "loan_add_popup",
  8. "position":"center",
  9. head:"This window can be moved",
  10. close : true ,
  11. "modal" :true,
  12. "move" : true,
  13. "width": 800,
  14. "body": {
  15. "rows": [
  16. {
  17. "view": "toolbar",
  18. "css": "webix_dark",
  19. "paddingX": 5,
  20. "cols": [
  21. { "view": "icon", "icon": "wxi-clock" },
  22. { "view": "label", "label": "Add new Transactions" },
  23. { "view": "button", "label": "Close", "width": 80 , "click": "close" }
  24. ]
  25. },
  26. {
  27. "view": "form",
  28. "margin": 40,
  29. "rows": [
  30. {
  31. "margin": 20,
  32. "cols": [
  33. {
  34. "margin": 10,
  35. "rows": [
  36. { "view": "template", "type": "section", "template": "Event" },
  37. { "view": "text", "placeholder": "Type here...", "label": "Event Name", "labelWidth": 100 },
  38. {
  39. "view": "datepicker",
  40. "label": "Start Date",
  41. "value": "2020-10-15T17:10:48.414Z",
  42. "timepicker": true,
  43. "format": "%H:%i %D, %d %M",
  44. "labelWidth": 100
  45. },
  46. {
  47. "view": "datepicker",
  48. "label": "End Date",
  49. "value": "2020-10-15T18:10:48.414Z",
  50. "format": "%H:%i %D, %d %M",
  51. "timepicker": true,
  52. "labelWidth": 100
  53. },
  54. {
  55. "view": "rangeslider",
  56. "label": "Time Slot",
  57. "min": 8,
  58. "max": 20,
  59. "value": [
  60. 10,
  61. 15
  62. ],
  63. "title": "#value#",
  64. "labelWidth": 100
  65. },
  66. {
  67. "view": "multicombo",
  68. "label": "Speakers",
  69. "value": "1,2",
  70. "options": "demo->5f82268d61c7b80018b278db",
  71. "labelWidth": 100
  72. },
  73. {
  74. "view": "richselect",
  75. "label": "Room",
  76. "value": "1",
  77. "options": "demo->5f82268d61c7b80018b278d7",
  78. "labelWidth": 100
  79. },
  80. { "view": "counter", "label": "Participants", "value": 30, "labelWidth": 100 }
  81. ]
  82. },
  83. {
  84. "margin": 10,
  85. "rows": [
  86. { "view": "template", "type": "section", "template": "Handouts" },
  87. {
  88. "view": "radio",
  89. "label": "Font Family",
  90. "value": "Arial",
  91. "options": [
  92. "Roboto",
  93. "Arial",
  94. "Calibri"
  95. ],
  96. "labelWidth": 130
  97. },
  98. {
  99. "view": "radio",
  100. "label": "Font Weight",
  101. "value": "400",
  102. "options": [
  103. "400",
  104. "500",
  105. "700"
  106. ],
  107. "labelWidth": 130
  108. },
  109. { "view": "text", "label": "Font Size (px)", "value": "14", "labelWidth": 130 },
  110. { "view": "colorpicker", "label": "Background", "value": "#CE9EFF", "labelWidth": 130 },
  111. { "view": "colorpicker", "label": "Font Color", "value": "#6C6C6C", "labelWidth": 130 },
  112. { "view": "colorpicker", "label": "Header Font", "value": "#00004C", "labelWidth": 130 },
  113. { "view": "checkbox", "value": 1, "label": "Material Icons", "labelWidth": 130 }
  114. ]
  115. }
  116. ]
  117. },
  118. {
  119. "options": "demo->5f82268d61c7b80018b278d7",
  120. "label": "Values",
  121. "value": "1,2",
  122. "view": "multicombo",
  123. "height": 38
  124. },
  125. { "view": "textarea", "placeholder": "Type here...", "label": "Additional Details", "labelPosition": "top", "labelWidth": 100 },
  126. {
  127. "margin": 10,
  128. "cols": [
  129. { "view": "template", "template": " ", "role": "placeholder", "borderless": true },
  130. { "view": "button", "label": "Discard", "css": "webix_transparent", "align": "right", "width": 120 , "click" : "close"},
  131. { "view": "button", "css": "webix_primary", "label": "Save", "align": "right", "width": 120, "click" :"close" }
  132. ]
  133. }
  134. ]
  135. }
  136. ]
  137. }
  138. };
  139. var loan_add_popup = webix.ui(loan_add_form);