a broker system for Supercredit
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

95 líneas
3.7KB

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