2019-01-28 15:24:45 +00:00
|
|
|
{
|
|
|
|
"module": "worker",
|
|
|
|
"name": "Workers",
|
|
|
|
"icon" : "icon-worker",
|
|
|
|
"validations" : true,
|
|
|
|
"menu": [
|
2019-03-08 08:41:53 +00:00
|
|
|
{"state": "worker.card.basicData", "icon": "settings"},
|
2019-03-22 07:28:57 +00:00
|
|
|
{"state": "worker.card.pbx", "icon": "icon-pbx"},
|
2019-05-17 11:27:51 +00:00
|
|
|
{"state": "worker.card.calendar", "icon": "icon-calendar"},
|
2019-10-18 06:36:33 +00:00
|
|
|
{"state": "worker.card.timeControl", "icon": "access_time"},
|
2019-10-18 11:52:15 +00:00
|
|
|
{"state": "worker.card.phones", "icon": "contact_phone"}
|
2019-01-28 15:24:45 +00:00
|
|
|
],
|
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"url": "/worker",
|
|
|
|
"state": "worker",
|
|
|
|
"abstract": true,
|
|
|
|
"component": "ui-view",
|
|
|
|
"description": "Workers"
|
|
|
|
}, {
|
|
|
|
"url": "/index?q",
|
|
|
|
"state": "worker.index",
|
|
|
|
"component": "vn-worker-index",
|
2019-02-20 08:59:39 +00:00
|
|
|
"description": "Workers"
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
|
|
|
"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"
|
2019-03-12 14:04:09 +00:00
|
|
|
},
|
|
|
|
{
|
2019-01-28 15:24:45 +00:00
|
|
|
"url": "/basic-data",
|
|
|
|
"state": "worker.card.basicData",
|
|
|
|
"component": "vn-worker-basic-data",
|
|
|
|
"description": "Basic data",
|
|
|
|
"params": {
|
|
|
|
"worker": "$ctrl.worker"
|
2019-02-20 08:59:39 +00:00
|
|
|
},
|
|
|
|
"acl": ["developer"]
|
2019-03-22 07:28:57 +00:00
|
|
|
},
|
|
|
|
{
|
2019-03-08 08:41:53 +00:00
|
|
|
"url": "/pbx",
|
|
|
|
"state": "worker.card.pbx",
|
|
|
|
"component": "vn-worker-pbx",
|
|
|
|
"description": "Private Branch Exchange",
|
|
|
|
"params": {
|
|
|
|
"worker": "$ctrl.worker"
|
|
|
|
},
|
|
|
|
"acl": ["hr"]
|
2019-03-12 14:04:09 +00:00
|
|
|
},
|
2019-03-22 07:28:57 +00:00
|
|
|
{
|
|
|
|
"url": "/calendar",
|
|
|
|
"state": "worker.card.calendar",
|
|
|
|
"component": "vn-worker-calendar",
|
|
|
|
"description": "Calendar",
|
|
|
|
"params": {
|
|
|
|
"worker": "$ctrl.worker"
|
|
|
|
}
|
|
|
|
},
|
2019-05-17 11:27:51 +00:00
|
|
|
{
|
|
|
|
"url": "/time-control",
|
|
|
|
"state": "worker.card.timeControl",
|
|
|
|
"component": "vn-worker-time-control",
|
|
|
|
"description": "Time control",
|
|
|
|
"params": {
|
|
|
|
"worker": "$ctrl.worker"
|
|
|
|
}
|
|
|
|
},
|
2019-03-12 14:04:09 +00:00
|
|
|
{
|
|
|
|
"url" : "/department",
|
|
|
|
"state": "worker.department",
|
|
|
|
"component": "vn-worker-department",
|
|
|
|
"description": "Departments"
|
2019-10-18 06:36:33 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"url": "/phones",
|
|
|
|
"state": "worker.card.phones",
|
|
|
|
"component": "vn-worker-phones",
|
|
|
|
"description": "Phones",
|
|
|
|
"params": {
|
|
|
|
"worker": "$ctrl.worker"
|
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|