Added custom workspace, html_block, etc. for the inventory dashboard.
This commit is contained in:
parent
8e9c2bfb72
commit
315480df44
13
uberleben_custom/fixtures/custom_html_block.json
Normal file
13
uberleben_custom/fixtures/custom_html_block.json
Normal file
@ -0,0 +1,13 @@
|
||||
[
|
||||
{
|
||||
"docstatus": 0,
|
||||
"doctype": "Custom HTML Block",
|
||||
"html": "<div id=inv-workspace>\n \n</div>",
|
||||
"modified": "2025-10-27 10:06:13.157675",
|
||||
"name": "Inventory Status Workspace",
|
||||
"private": 0,
|
||||
"roles": [],
|
||||
"script": "let container = root_element.querySelector('#inv-workspace');\n\ncontainer.textContent = \"Hello, World!\";",
|
||||
"style": null
|
||||
}
|
||||
]
|
||||
@ -25,7 +25,8 @@ add_to_apps_screen = [
|
||||
# ------------------
|
||||
|
||||
fixtures = [
|
||||
{"doctype": "Client Script", "filters": [["module", "=", "Uberleben Customizations"]]}
|
||||
{"doctype": "Client Script", "filters": [["module", "=", "Uberleben Customizations"]]},
|
||||
"Custom HTML Block"
|
||||
]
|
||||
|
||||
# Includes in <head>
|
||||
|
||||
@ -0,0 +1,34 @@
|
||||
{
|
||||
"charts": [],
|
||||
"content": "[{\"id\":\"c_aCnjNdI7\",\"type\":\"header\",\"data\":{\"text\":\"<span class=\\\"h4\\\">Inventory Status</span>\",\"col\":12}},{\"id\":\"5Fb6hSw9u0\",\"type\":\"custom_block\",\"data\":{\"custom_block_name\":\"Inventory Status Workspace\",\"col\":12}}]",
|
||||
"creation": "2025-10-27 10:03:13.402465",
|
||||
"custom_blocks": [
|
||||
{
|
||||
"custom_block_name": "Inventory Status Workspace",
|
||||
"label": "Inventory Status Workspace"
|
||||
}
|
||||
],
|
||||
"docstatus": 0,
|
||||
"doctype": "Workspace",
|
||||
"for_user": "",
|
||||
"hide_custom": 0,
|
||||
"icon": "stock",
|
||||
"idx": 0,
|
||||
"indicator_color": "",
|
||||
"is_hidden": 0,
|
||||
"label": "Inventory Status",
|
||||
"links": [],
|
||||
"modified": "2025-10-27 10:46:51.991963",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Uberleben Customizations",
|
||||
"name": "Inventory Status",
|
||||
"number_cards": [],
|
||||
"owner": "Administrator",
|
||||
"parent_page": "",
|
||||
"public": 1,
|
||||
"quick_lists": [],
|
||||
"roles": [],
|
||||
"sequence_id": 2.0,
|
||||
"shortcuts": [],
|
||||
"title": "Inventory Status"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user