155 lines
4.7 KiB
JSON
155 lines
4.7 KiB
JSON
{
|
|
"module": "worker",
|
|
"name": "Workers",
|
|
"icon" : "icon-worker",
|
|
"validations" : true,
|
|
"dependencies": ["account"],
|
|
"menus": {
|
|
"main": [
|
|
{"state": "worker.index", "icon": "icon-worker"},
|
|
{"state": "worker.department", "icon": "work"}
|
|
],
|
|
"card": [
|
|
{"state": "worker.card.basicData", "icon": "settings"},
|
|
{"state": "worker.card.pda", "icon": "phone_android"},
|
|
{"state": "worker.card.pbx", "icon": "icon-pbx"},
|
|
{"state": "worker.card.calendar", "icon": "icon-calendar"},
|
|
{"state": "worker.card.timeControl", "icon": "access_time"},
|
|
{"state": "worker.card.dms.index", "icon": "cloud_upload"},
|
|
{
|
|
"icon": "icon-wiki",
|
|
"external":true,
|
|
"url": "http://wiki.verdnatura.es",
|
|
"description": "Wikipedia"
|
|
},
|
|
{"state": "worker.card.workerLog", "icon": "history"}
|
|
]
|
|
},
|
|
"keybindings": [
|
|
{
|
|
"key": "w",
|
|
"state": "worker.index"
|
|
}
|
|
],
|
|
"routes": [
|
|
{
|
|
"url": "/worker",
|
|
"state": "worker",
|
|
"abstract": true,
|
|
"component": "vn-worker",
|
|
"description": "Workers"
|
|
}, {
|
|
"url": "/index?q",
|
|
"state": "worker.index",
|
|
"component": "vn-worker-index",
|
|
"description": "Workers"
|
|
}, {
|
|
"url" : "/summary",
|
|
"state": "worker.card.summary",
|
|
"component": "vn-worker-summary",
|
|
"description": "Summary",
|
|
"params": {
|
|
"worker": "$ctrl.worker"
|
|
}
|
|
}, {
|
|
"url": "/:id",
|
|
"state": "worker.card",
|
|
"component": "vn-worker-card",
|
|
"abstract": true,
|
|
"description": "Detail"
|
|
}, {
|
|
"url": "/basic-data",
|
|
"state": "worker.card.basicData",
|
|
"component": "vn-worker-basic-data",
|
|
"description": "Basic data",
|
|
"params": {
|
|
"worker": "$ctrl.worker"
|
|
},
|
|
"acl": ["hr"]
|
|
}, {
|
|
"url" : "/log",
|
|
"state": "worker.card.workerLog",
|
|
"component": "vn-worker-log",
|
|
"description": "Log",
|
|
"acl": ["salesAssistant"]
|
|
}, {
|
|
"url": "/pbx",
|
|
"state": "worker.card.pbx",
|
|
"component": "vn-worker-pbx",
|
|
"description": "Private Branch Exchange",
|
|
"params": {
|
|
"worker": "$ctrl.worker"
|
|
},
|
|
"acl": ["hr"]
|
|
}, {
|
|
"url": "/calendar",
|
|
"state": "worker.card.calendar",
|
|
"component": "vn-worker-calendar",
|
|
"description": "Calendar",
|
|
"params": {
|
|
"worker": "$ctrl.worker"
|
|
}
|
|
}, {
|
|
"url": "/time-control?timestamp",
|
|
"state": "worker.card.timeControl",
|
|
"component": "vn-worker-time-control",
|
|
"description": "Time control",
|
|
"params": {
|
|
"worker": "$ctrl.worker"
|
|
}
|
|
}, {
|
|
"url" : "/department",
|
|
"state": "worker.department",
|
|
"component": "vn-worker-department",
|
|
"description": "Departments",
|
|
"acl": ["hr"]
|
|
}, {
|
|
"url": "/dms",
|
|
"state": "worker.card.dms",
|
|
"abstract": true,
|
|
"component": "ui-view"
|
|
},
|
|
{
|
|
"url": "/index",
|
|
"state": "worker.card.dms.index",
|
|
"component": "vn-worker-dms-index",
|
|
"description": "My documentation",
|
|
"acl": ["employee"]
|
|
},
|
|
{
|
|
"url": "/create",
|
|
"state": "worker.card.dms.create",
|
|
"component": "vn-worker-dms-create",
|
|
"description": "Upload file",
|
|
"params": {
|
|
"worker": "$ctrl.worker"
|
|
},
|
|
"acl": ["hr"]
|
|
},
|
|
{
|
|
"url": "/:dmsId/edit",
|
|
"state": "worker.card.dms.edit",
|
|
"component": "vn-worker-dms-edit",
|
|
"description": "Edit file",
|
|
"params": {
|
|
"worker": "$ctrl.worker"
|
|
},
|
|
"acl": ["hr"]
|
|
},
|
|
{
|
|
"url": "/create",
|
|
"state": "worker.create",
|
|
"component": "vn-worker-create",
|
|
"description": "New worker",
|
|
"acl": ["hr"]
|
|
},
|
|
{
|
|
"url": "/pda",
|
|
"state": "worker.card.pda",
|
|
"component": "vn-worker-pda",
|
|
"description": "PDA",
|
|
"acl": ["employee"]
|
|
}
|
|
]
|
|
}
|