Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

261 рядки
6.0 KiB

  1. from __future__ import unicode_literals
  2. from frappe import _
  3. from frappe.desk.moduleview import add_setup_section
  4. def get_data():
  5. data = [
  6. {
  7. "label": _("Users"),
  8. "icon": "icon-group",
  9. "items": [
  10. {
  11. "type": "doctype",
  12. "name": "User",
  13. "description": _("System and Website Users")
  14. },
  15. {
  16. "type": "doctype",
  17. "name": "Role",
  18. "description": _("User Roles")
  19. }
  20. ]
  21. },
  22. {
  23. "label": _("Permissions"),
  24. "icon": "icon-lock",
  25. "items": [
  26. {
  27. "type": "page",
  28. "name": "permission-manager",
  29. "label": _("Role Permissions Manager"),
  30. "icon": "icon-lock",
  31. "description": _("Set Permissions on Document Types and Roles")
  32. },
  33. {
  34. "type": "page",
  35. "name": "user-permissions",
  36. "label": _("User Permissions Manager"),
  37. "icon": "icon-shield",
  38. "description": _("Set Permissions per User")
  39. },
  40. {
  41. "type": "page",
  42. "name": "modules_setup",
  43. "label": _("Show / Hide Modules"),
  44. "icon": "icon-upload",
  45. "description": _("Show or hide modules globally.")
  46. },
  47. {
  48. "type": "report",
  49. "is_query_report": True,
  50. "doctype": "User",
  51. "icon": "icon-eye-open",
  52. "name": "Permitted Documents For User",
  53. "description": _("Check which Documents are readable by a User")
  54. },
  55. {
  56. "type": "report",
  57. "doctype": "DocShare",
  58. "icon": "icon-share",
  59. "name": "Document Share Report",
  60. "description": _("Report of all document shares")
  61. }
  62. ]
  63. },
  64. {
  65. "label": _("Settings"),
  66. "icon": "icon-wrench",
  67. "items": [
  68. {
  69. "type": "doctype",
  70. "name": "System Settings",
  71. "label": _("System Settings"),
  72. "description": _("Language, Date and Time settings"),
  73. "hide_count": True
  74. },
  75. {
  76. "type": "doctype",
  77. "name": "Scheduler Log",
  78. "description": _("Log of error on automated events (scheduler).")
  79. },
  80. {
  81. "type": "doctype",
  82. "name": "Error Snapshot",
  83. "description": _("Log of error during requests.")
  84. },
  85. ]
  86. },
  87. {
  88. "label": _("Data"),
  89. "icon": "icon-th",
  90. "items": [
  91. {
  92. "type": "page",
  93. "name": "data-import-tool",
  94. "label": _("Import / Export Data"),
  95. "icon": "icon-upload",
  96. "description": _("Import / Export Data from .csv files.")
  97. },
  98. {
  99. "type": "doctype",
  100. "name": "Naming Series",
  101. "description": _("Set numbering series for transactions."),
  102. "hide_count": True
  103. },
  104. {
  105. "type": "doctype",
  106. "name": "Rename Tool",
  107. "label": _("Bulk Rename"),
  108. "description": _("Rename many items by uploading a .csv file."),
  109. "hide_count": True
  110. },
  111. {
  112. "type": "page",
  113. "name": "backups",
  114. "label": _("Download Backups"),
  115. "description": _("List of backups available for download"),
  116. "icon": "icon-download"
  117. },
  118. ]
  119. },
  120. {
  121. "label": _("Email"),
  122. "icon": "icon-envelope",
  123. "items": [
  124. {
  125. "type": "doctype",
  126. "name": "Email Account",
  127. "description": _("Add / Manage Email Accounts.")
  128. },
  129. {
  130. "type": "doctype",
  131. "name": "Email Alert",
  132. "description": _("Setup Email Alert based on various criteria.")
  133. },
  134. {
  135. "type": "doctype",
  136. "name": "Standard Reply",
  137. "description": _("Standard replies to common queries.")
  138. },
  139. {
  140. "type": "doctype",
  141. "name": "Newsletter",
  142. "description": _("Newsletters to contacts, leads."),
  143. },
  144. {
  145. "type": "doctype",
  146. "name": "Email Group",
  147. "description": _("Email Group List"),
  148. },
  149. {
  150. "type": "doctype",
  151. "name": "Email Group Member",
  152. "description": _("Email Group Member List"),
  153. },
  154. ]
  155. },
  156. {
  157. "label": _("Printing"),
  158. "icon": "icon-print",
  159. "items": [
  160. {
  161. "type": "page",
  162. "label": "Print Format Builder",
  163. "name": "print-format-builder",
  164. "description": _("Drag and Drop tool to build and customize Print Formats.")
  165. },
  166. {
  167. "type": "doctype",
  168. "name": "Print Settings",
  169. "description": _("Set default format, page size, print style etc.")
  170. },
  171. {
  172. "type": "doctype",
  173. "name": "Print Format",
  174. "description": _("Customized HTML Templates for printing transactions.")
  175. },
  176. ]
  177. },
  178. {
  179. "label": _("Workflow"),
  180. "icon": "icon-random",
  181. "items": [
  182. {
  183. "type": "doctype",
  184. "name": "Workflow",
  185. "description": _("Define workflows for forms.")
  186. },
  187. {
  188. "type": "doctype",
  189. "name": "Workflow State",
  190. "description": _("States for workflow (e.g. Draft, Approved, Cancelled).")
  191. },
  192. {
  193. "type": "doctype",
  194. "name": "Workflow Action",
  195. "description": _("Actions for workflow (e.g. Approve, Cancel).")
  196. },
  197. ]
  198. },
  199. {
  200. "label": _("Integrations"),
  201. "icon": "icon-star",
  202. "items": [
  203. {
  204. "type": "page",
  205. "name": "applications",
  206. "label": _("Application Installer"),
  207. "description": _("Install Applications."),
  208. "icon": "icon-download"
  209. },
  210. {
  211. "type": "doctype",
  212. "name": "Social Login Keys",
  213. "description": _("Enter keys to enable login via Facebook, Google, GitHub."),
  214. },
  215. {
  216. "type": "doctype",
  217. "name": "Dropbox Backup",
  218. "description": _("Manage cloud backups on Dropbox"),
  219. "hide_count": True
  220. }
  221. ]
  222. },
  223. {
  224. "label": _("Customize"),
  225. "icon": "icon-glass",
  226. "items": [
  227. {
  228. "type": "doctype",
  229. "name": "Customize Form",
  230. "description": _("Change field properties (hide, readonly, permission etc.)"),
  231. "hide_count": True
  232. },
  233. {
  234. "type": "doctype",
  235. "name": "Custom Field",
  236. "description": _("Add fields to forms.")
  237. },
  238. {
  239. "type": "doctype",
  240. "label": _("Custom Translations"),
  241. "name": "Translation",
  242. "description": _("Add your own translations")
  243. },
  244. {
  245. "type": "doctype",
  246. "name": "Custom Script",
  247. "description": _("Add custom javascript to forms.")
  248. },
  249. {
  250. "type": "doctype",
  251. "name": "DocType",
  252. "description": _("Add custom forms.")
  253. }
  254. ]
  255. },
  256. ]
  257. add_setup_section(data, "frappe", "website", _("Website"), "icon-globe")
  258. return data