salix/modules/route/front/routes.json

95 lines
2.9 KiB
JSON

{
"module": "route",
"name": "Routes",
"icon": "icon-delivery",
"validations" : true,
"dependencies": ["client", "worker", "ticket", "supplier", "invoiceIn"],
"menus": {
"main": [
{"state": "route.index", "icon": "icon-delivery"},
{"state": "route.agencyTerm.index", "icon": "icon-delivery"}
],
"card": [
{"state": "route.card.basicData", "icon": "settings"},
{"state": "route.card.tickets", "icon": "icon-ticket"},
{"state": "route.card.log", "icon": "history"}
]
},
"routes": [
{
"url": "/route",
"state": "route",
"abstract": true,
"component": "vn-route",
"description": "Routes",
"acl": ["employee"]
}, {
"url": "/index?q",
"state": "route.index",
"component": "vn-route-index",
"description": "Routes"
}, {
"url": "/create",
"state": "route.create",
"component": "vn-route-create",
"description": "New route"
}, {
"url": "/:id",
"state": "route.card",
"abstract": true,
"component": "vn-route-card"
}, {
"url": "/agency-term",
"abstract": true,
"state": "route.agencyTerm",
"component": "ui-view"
}, {
"url": "/index",
"state": "route.agencyTerm.index",
"component": "vn-agency-term-index",
"description": "Autonomous",
"acl": ["administrative"]
},{
"url": "/createInvoiceIn?q",
"state": "route.agencyTerm.createInvoiceIn",
"component": "vn-agency-term-create-invoice-in",
"description": "File management",
"params": {
"route": "$ctrl.route"
},
"acl": ["administrative"]
}, {
"url": "/summary",
"state": "route.card.summary",
"component": "vn-route-summary",
"description": "Summary",
"params": {
"route": "$ctrl.route"
}
}, {
"url": "/basic-data",
"state": "route.card.basicData",
"component": "vn-route-basic-data",
"description": "Basic data",
"params": {
"route": "$ctrl.route"
},
"acl": ["delivery"]
}, {
"url" : "/log",
"state": "route.card.log",
"component": "vn-route-log",
"description": "Log",
"acl": ["delivery"]
}, {
"url": "/tickets",
"state": "route.card.tickets",
"component": "vn-route-tickets",
"description": "Tickets",
"params": {
"route": "$ctrl.route"
},
"acl": ["delivery"]
}
]
}