a broker system for Supercredit
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

95 lines
3.7KB

  1. function toggle_sidemenu(){
  2. if( $$("menu").config.hidden){
  3. $$("menu").show();
  4. }
  5. else
  6. $$("menu").hide();
  7. }
  8. var top_toolbar = {
  9. "view": "toolbar", "id": "header", "css": "webix_dark", "padding": { "right": 10, "left": 10 },
  10. "elements": [
  11. {
  12. view: "icon", icon: "mdi mdi-menu",
  13. click: toggle_sidemenu,
  14. },
  15. { "view": "menu", "id": "topBar", "subMenuPos": "bottom", "submenuConfig": { "autowidth": true },
  16. "data": [
  17. {
  18. "value": "SFM",
  19. "icon": "wxi-dots",
  20. "submenu": [
  21. { "value": "Summary", "icon": "wxi-calendar" , "href": "summary.html"},
  22. { "value": "Pending Jobs", "icon": "mdi mdi-notebook-check", "href": "pending_job.html" },
  23. { "value": "Mass Mailing", "icon": "mdi mdi-email", "href": "mass_mailing.html" },
  24. { "$template": "Separator" },
  25. { "value": "Logout", "icon": "mdi mdi-exit-run", "href" : "login.html" }
  26. ]
  27. },
  28. {
  29. "value": "Loans",
  30. "autowidth": true,
  31. "icon": "mdi mdi-bank-transfer",
  32. "submenu": {
  33. "data": [
  34. {
  35. "value": "Add", "icon": "mdi mdi-table-column-plus-before" ,
  36. "href" : "javascript:loan_add_popup.show();"
  37. },
  38. { "$template": "Separator" },
  39. { "value": "New", "icon": "mdi mdi-file-export", "badge": "20" , "href" : "transaction_new.html"},
  40. { "value": "Submitted", "icon": "mdi mdi-file-upload", "badge": "50", "href" : "transaction_submit.html" },
  41. { "value": "Approved", "icon": "mdi mdi-file-upload", "badge": "35" ,"href" : "transaction_submit.html"},
  42. { "value": "Rejected", "icon": "mdi mdi-file-upload", "badge": "10" , "href" : "transaction_submit.html"},
  43. { "value": "Settled", "icon": "mdi mdi-file-upload", "badge": "99" ,"href" : "transaction_submit.html"}
  44. ]
  45. }
  46. },
  47. {
  48. "value": "Trails",
  49. "autowidth": true,
  50. "icon": "mdi mdi-bank-transfer",
  51. "submenu": {
  52. "data": [
  53. {
  54. "value": "List all", "icon": "mdi mdi-table-column-plus-before" ,
  55. },
  56. { "$template": "Separator" },
  57. { "value": "Export", "icon": "mdi mdi-file-export" , "href" : "javascript:loan_add_popup.show();"},
  58. { "value": "Import", "icon": "mdi mdi-file-upload" , "href" : "javascript:loan_add_popup.show();"}
  59. ]
  60. }
  61. },
  62. {
  63. "value": "Clients",
  64. "icon": "mdi mdi-account-supervisor-circle",
  65. "submenu": [
  66. { "value": "Add", "icon": "mdi mdi-account-plus" ,"href" : "transaction_submit.html"},
  67. { "value": "Search", "icon": "mdi mdi-account-search" ,"href" : "transaction_submit.html"},
  68. { "value": "Broadcast", "icon": "mdi mdi-account-off" ,"href" : "transaction_submit.html"}
  69. ]
  70. },
  71. {
  72. "value": "Broker",
  73. "icon": "mdi mdi-account-details",
  74. "submenu": [
  75. { "value": "Add", "icon": "mdi mdi-account-plus" ,"href" : "transaction_submit.html"},
  76. { "value": "Search", "icon": "mdi mdi-account-search" ,"href" : "transaction_submit.html"},
  77. { "$template": "Separator" },
  78. { "value": "Broadcast", "icon": "mdi mdi-account-off" ,"href" : "transaction_submit.html"},
  79. { "$template": "Separator" },
  80. { "value": "Unpaid", "icon": "mdi mdi-file-upload","href" : "transaction_submit.html" }
  81. ]
  82. }
  83. ],
  84. "type": { "subsign": true },
  85. "height": 0
  86. },
  87. { "view": "label", "label": "SuperCredit ", "align": "right", "height": 0 }
  88. ]
  89. };
  90. function initTopMenu(layout, view){
  91. if ($$(layout) && $$(view))
  92. webix.ui(top_toolbar, $$(layout), $$(view));
  93. }