63 lines
1.8 KiB
JSON
63 lines
1.8 KiB
JSON
{
|
|
"module": "travel",
|
|
"name": "Travels",
|
|
"icon": "local_airport",
|
|
"validations": true,
|
|
"dependencies": ["worker"],
|
|
"menus": {
|
|
"main": [
|
|
{"state": "travel.index", "icon": "local_airport"}
|
|
],
|
|
"card": [
|
|
{"state": "travel.card.basicData", "icon": "settings"},
|
|
{"state": "travel.card.log", "icon": "history"}
|
|
]
|
|
},
|
|
"routes": [
|
|
{
|
|
"url": "/travel",
|
|
"state": "travel",
|
|
"abstract": true,
|
|
"component": "vn-travel",
|
|
"description": "Travels"
|
|
}, {
|
|
"url": "/index?q",
|
|
"state": "travel.index",
|
|
"component": "vn-travel-index",
|
|
"description": "Travels",
|
|
"acl": ["developer"]
|
|
}, {
|
|
"url": "/:id",
|
|
"state": "travel.card",
|
|
"abstract": true,
|
|
"component": "vn-travel-card"
|
|
}, {
|
|
"url": "/summary",
|
|
"state": "travel.card.summary",
|
|
"component": "vn-travel-summary",
|
|
"description": "Summary",
|
|
"params": {
|
|
"travel": "$ctrl.travel"
|
|
}
|
|
}, {
|
|
"url": "/basic-data",
|
|
"state": "travel.card.basicData",
|
|
"component": "vn-travel-basic-data",
|
|
"description": "Basic data",
|
|
"acl": ["buyer","logistic"],
|
|
"params": {
|
|
"travel": "$ctrl.travel"
|
|
}
|
|
}, {
|
|
"url" : "/log",
|
|
"state": "travel.card.log",
|
|
"component": "vn-travel-log",
|
|
"description": "Log"
|
|
}, {
|
|
"url": "/create",
|
|
"state": "travel.create",
|
|
"component": "vn-travel-create",
|
|
"description": "New travel"
|
|
}
|
|
]
|
|
} |