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.

84 satır
3.3KB

  1. var broadcast_form =
  2. {
  3. "view": "popup",
  4. "id": "broadcast_popup",
  5. "css": "broadcast_popup",
  6. "position": "center",
  7. head: "This window can be moved",
  8. close: true,
  9. "modal": true,
  10. "move": true,
  11. "width": 600,
  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": "Broadcast Message" },
  21. { "view": "button", "label": "x", "width": 50 , click: close_brodcast }
  22. ]
  23. },
  24. {
  25. "view": "form",
  26. "margin": 40,
  27. "rows": [
  28. {
  29. "margin": 10,
  30. "rows": [
  31. { "view": "template", "type": "section", "template": "Message Details" },
  32. {
  33. "rows": [
  34. { "view": "text", "placeholder": "Type here...", "label": "Subject", "labelWidth": 100 },
  35. {
  36. "options": "demo->5f82268d61c7b80018b278d7",
  37. "label": "Exclude",
  38. "value": "1,2",
  39. "view": "multicombo",
  40. "height": 38,
  41. "labelWidth": 100
  42. },
  43. {
  44. "label": "Priority",
  45. "value": "One",
  46. "options": [
  47. "Low",
  48. " standard",
  49. " high"
  50. ],
  51. "view": "radio",
  52. "labelWidth": 100
  53. },
  54. {
  55. "label": "Message",
  56. "view": "textarea",
  57. "placeholder": "some text, to be added",
  58. "height" : 300,
  59. "labelWidth": 100
  60. }
  61. ]
  62. }
  63. ]
  64. },
  65. {
  66. "margin": 10,
  67. "cols": [
  68. { "view": "template", "template": " ", "role": "placeholder", "borderless": true },
  69. { "view": "button", "label": "Discard", "css": "webix_transparent", "align": "right", "width": 120 , click: close_brodcast},
  70. { "view": "button", "css": "webix_primary", "label": "Save", "align": "right", "width": 120 , click: close_brodcast}
  71. ]
  72. }
  73. ]
  74. }
  75. ]
  76. }
  77. };
  78. var broadcast_popup = webix.ui(broadcast_form);
  79. function close_brodcast(){
  80. broadcast_popup.hide();
  81. }