95 lines
2.9 KiB
JSON
95 lines
2.9 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"},
|
|
{"state": "travel.card.thermograph.index", "icon": "icon-thermometer"}
|
|
]
|
|
},
|
|
"routes": [
|
|
{
|
|
"url": "/travel",
|
|
"state": "travel",
|
|
"abstract": true,
|
|
"component": "vn-travel",
|
|
"description": "Travels"
|
|
}, {
|
|
"url": "/index?q",
|
|
"state": "travel.index",
|
|
"component": "vn-travel-index",
|
|
"description": "Travels"
|
|
}, {
|
|
"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"
|
|
}, {
|
|
"url": "/thermograph",
|
|
"state": "travel.card.thermograph",
|
|
"abstract": true,
|
|
"component": "ui-view"
|
|
}, {
|
|
"url" : "/index",
|
|
"state": "travel.card.thermograph.index",
|
|
"component": "vn-travel-thermograph-index",
|
|
"description": "Thermographs",
|
|
"params": {
|
|
"travel": "$ctrl.travel"
|
|
},
|
|
"acl": ["buyer"]
|
|
}, {
|
|
"url" : "/create",
|
|
"state": "travel.card.thermograph.create",
|
|
"component": "vn-travel-thermograph-create",
|
|
"description": "Add thermograph",
|
|
"params": {
|
|
"travel": "$ctrl.travel"
|
|
},
|
|
"acl": ["buyer"]
|
|
}, {
|
|
"url" : "/:thermographId/edit",
|
|
"state": "travel.card.thermograph.edit",
|
|
"component": "vn-travel-thermograph-edit",
|
|
"description": "Edit thermograph",
|
|
"params": {
|
|
"travel": "$ctrl.travel"
|
|
},
|
|
"acl": ["buyer"]
|
|
}
|
|
]
|
|
} |