diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json new file mode 100644 index 0000000..5fe759c --- /dev/null +++ b/Admin/Install/Navigation.install.json @@ -0,0 +1,33 @@ +[ + { + "id": 1005701001, + "pid": "/", + "type": 2, + "subtype": 1, + "name": "Labeling", + "uri": "{/prefix}warehouse/labeling/dashboard?{?}", + "target": "self", + "icon": null, + "order": 1, + "from": "Labelling", + "permission": { "permission": 2, "type": null, "element": null }, + "parent": 1001301001, + "children": [ + { + "id": 1005702001, + "pid": "/warehouse/labeling", + "type": 3, + "subtype": 1, + "name": "Dashboard", + "uri": "{/prefix}warehouse/labeling/dashboard?{?}", + "target": "self", + "icon": null, + "order": 1, + "from": "Labeling", + "permission": { "permission": 2, "type": null, "element": null }, + "parent": 1005701001, + "children": [] + } + ] + } +] diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php new file mode 100644 index 0000000..0dba124 --- /dev/null +++ b/Admin/Install/Navigation.php @@ -0,0 +1,43 @@ + __DIR__ . '/Navigation.install.json']); + } +} diff --git a/Admin/Installer.php b/Admin/Installer.php new file mode 100644 index 0000000..0f1b833 --- /dev/null +++ b/Admin/Installer.php @@ -0,0 +1,36 @@ + [ + [ + 'dest' => '\Modules\Labeling\Controller\BackendController:viewBudgetingDashboard', + 'verb' => RouteVerb::GET, + 'permission' => [ + 'module' => BackendController::MODULE_NAME, + 'type' => PermissionType::READ, + 'state' => PermissionState::LABEL, + ], + ], + ], +]; diff --git a/Admin/Status.php b/Admin/Status.php new file mode 100644 index 0000000..ab2e572 --- /dev/null +++ b/Admin/Status.php @@ -0,0 +1,36 @@ + [ + 'Budgeting' => 'Budgeting', + 'Dashboard' => 'Dashboard', +]]; diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php new file mode 100644 index 0000000..0bac950 --- /dev/null +++ b/Theme/Backend/Lang/en.lang.php @@ -0,0 +1,16 @@ + [ +]]; diff --git a/Theme/Backend/stock-analysis.tpl.php b/Theme/Backend/stock-analysis.tpl.php new file mode 100644 index 0000000..e69de29 diff --git a/Theme/Backend/stock-counting.tpl.php b/Theme/Backend/stock-counting.tpl.php new file mode 100644 index 0000000..ab666ab --- /dev/null +++ b/Theme/Backend/stock-counting.tpl.php @@ -0,0 +1,15 @@ +getData('nav')->render(); diff --git a/info.json b/info.json new file mode 100644 index 0000000..cc7e38b --- /dev/null +++ b/info.json @@ -0,0 +1,45 @@ +{ + "name": { + "id": 1005700000, + "internal": "Labeling", + "external": "Labeling" + }, + "category": "Finance", + "version": "1.0.0", + "requirements": { + "phpOMS": "1.0.0", + "phpOMS-db": "1.0.0" + }, + "creator": { + "name": "Jingga", + "website": "jingga.app" + }, + "description": "Labeling module.", + "directory": "Labeling", + "dependencies": { + "Controlling": "*" + }, + "providing": { + "Navigation": "*" + }, + "load": [ + { + "pid": [ + "/warehouse/stocktaking" + ], + "type": 4, + "for": 0, + "from": "Labeling", + "file": "Labeling" + }, + { + "pid": [ + "/" + ], + "type": 5, + "from": "Labeling", + "for": "Navigation", + "file": "Navigation" + } + ] +}