107 lines
3.3 KiB
JSON
107 lines
3.3 KiB
JSON
{
|
|
"module": "travel",
|
|
"name": "Travels",
|
|
"icon": "local_airport",
|
|
"validations": true,
|
|
"dependencies": ["worker", "entry"],
|
|
"menus": {
|
|
"main": [
|
|
{"state": "travel.index", "icon": "local_airport"},
|
|
{"state": "travel.extraCommunity", "icon": "directions_boat"}
|
|
],
|
|
"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?q",
|
|
"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"]
|
|
},
|
|
{
|
|
"url": "/extra-community?q",
|
|
"state": "travel.extraCommunity",
|
|
"component": "vn-travel-extra-community",
|
|
"description": "Extra community",
|
|
"acl": ["buyer"],
|
|
"params": {
|
|
"travel": "$ctrl.travel"
|
|
}
|
|
}
|
|
]
|
|
}
|