a broker system for Supercredit
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

90 行
4.1KB

  1. var client_form =
  2. {
  3. "view": "popup",
  4. "id": "client_add_popup",
  5. "css": "client_add_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": "Add Client" },
  21. { "view": "button", "label": "x", "width": 50 , click: close_client_form}
  22. ]
  23. },
  24. {
  25. "view": "form",
  26. "margin": 40,
  27. "rows": [
  28. {
  29. "margin": 10,
  30. "rows": [
  31. { "view": "template", "type": "section", "template": "User 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. { "type": "ean13", "value": "123456789012", "view": "barcode", "width": 220 },
  64. { "view": "template", "template": "Mobile App ID", "role": "placeholder" }
  65. ]
  66. }
  67. ]
  68. }
  69. ]
  70. },
  71. {
  72. "margin": 10,
  73. "cols": [
  74. { "view": "template", "template": " ", "role": "placeholder", "borderless": true },
  75. { "view": "button", "label": "Discard", "css": "webix_transparent", "align": "right", "width": 120 , click : close_client_form},
  76. { "view": "button", "css": "webix_primary", "label": "Save", "align": "right", "width": 120 , click : close_client_form}
  77. ]
  78. }
  79. ]
  80. }
  81. ]
  82. }
  83. };
  84. var client_form_popup = webix.ui(client_form);
  85. function close_client_form(){
  86. client_form_popup.hide();
  87. }