salix/modules/worker/front/routes.json

175 lines
5.3 KiB
JSON
Raw Normal View History

2019-01-28 15:24:45 +00:00
{
"module": "worker",
"name": "Workers",
"icon" : "icon-worker",
"validations" : true,
2020-11-13 09:33:34 +00:00
"dependencies": ["account"],
2019-11-10 10:08:44 +00:00
"menus": {
"main": [
{"state": "worker.index", "icon": "icon-worker"},
{"state": "worker.department", "icon": "work"}
],
"card": [
{"state": "worker.card.basicData", "icon": "settings"},
2023-03-22 09:21:15 +00:00
{"state": "worker.card.note.index", "icon": "insert_drive_file"},
2023-02-28 07:37:17 +00:00
{"state": "worker.card.timeControl", "icon": "access_time"},
{"state": "worker.card.calendar", "icon": "icon-calendar"},
2023-02-28 07:00:18 +00:00
{"state": "worker.card.pda", "icon": "phone_android"},
2019-11-10 10:08:44 +00:00
{"state": "worker.card.pbx", "icon": "icon-pbx"},
2020-03-24 11:20:53 +00:00
{"state": "worker.card.dms.index", "icon": "cloud_upload"},
2020-04-06 10:40:21 +00:00
{
2022-11-14 14:19:16 +00:00
"icon": "icon-wiki",
2020-04-06 10:40:21 +00:00
"external":true,
"url": "http://wiki.verdnatura.es",
"description": "Wikipedia"
},
2020-03-24 11:20:53 +00:00
{"state": "worker.card.workerLog", "icon": "history"}
2019-11-10 10:08:44 +00:00
]
},
"keybindings": [
{
"key": "w",
"state": "worker.index"
}
],
2019-01-28 15:24:45 +00:00
"routes": [
{
"url": "/worker",
"state": "worker",
"abstract": true,
2019-11-10 10:08:44 +00:00
"component": "vn-worker",
2019-01-28 15:24:45 +00:00
"description": "Workers"
}, {
"url": "/index?q",
"state": "worker.index",
"component": "vn-worker-index",
"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-11-10 10:08:44 +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-12-17 11:18:17 +00:00
"acl": ["hr"]
2020-03-24 11:20:53 +00:00
}, {
"url" : "/log",
"state": "worker.card.workerLog",
"component": "vn-worker-log",
"description": "Log",
2023-06-01 11:19:34 +00:00
"acl": ["hr"]
2023-03-22 09:21:15 +00:00
}, {
"url": "/note",
"state": "worker.card.note",
"component": "ui-view",
"abstract": true
}, {
"url": "/index",
"state": "worker.card.note.index",
"component": "vn-worker-note",
"description": "Notes",
"params": {
"worker": "$ctrl.worker"
2023-04-18 12:51:48 +00:00
},
"acl": ["hr"]
2023-03-22 09:21:15 +00:00
}, {
"url": "/create",
"state": "worker.card.note.create",
"component": "vn-note-worker-create",
"description": "New note"
2019-11-10 10:08:44 +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-11-10 10:08:44 +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-11-10 10:08:44 +00:00
}, {
"url": "/time-control?timestamp",
2019-05-17 11:27:51 +00:00
"state": "worker.card.timeControl",
"component": "vn-worker-time-control",
"description": "Time control",
"params": {
"worker": "$ctrl.worker"
}
2019-11-10 10:08:44 +00:00
}, {
2019-03-12 14:04:09 +00:00
"url" : "/department",
"state": "worker.department",
"component": "vn-worker-department",
2019-12-17 11:18:17 +00:00
"description": "Departments",
"acl": ["hr"]
2019-11-10 10:08:44 +00:00
}, {
2019-11-22 09:42:05 +00:00
"url": "/dms",
"state": "worker.card.dms",
"abstract": true,
"component": "ui-view"
},
{
"url": "/index",
"state": "worker.card.dms.index",
"component": "vn-worker-dms-index",
2020-03-24 16:34:23 +00:00
"description": "My documentation",
2020-04-03 15:52:47 +00:00
"acl": ["employee"]
2019-11-22 09:42:05 +00:00
},
{
"url": "/create",
"state": "worker.card.dms.create",
"component": "vn-worker-dms-create",
"description": "Upload file",
"params": {
"worker": "$ctrl.worker"
2019-12-17 11:18:17 +00:00
},
"acl": ["hr"]
2019-11-22 09:42:05 +00:00
},
{
"url": "/:dmsId/edit",
"state": "worker.card.dms.edit",
"component": "vn-worker-dms-edit",
"description": "Edit file",
"params": {
"worker": "$ctrl.worker"
2019-12-17 11:18:17 +00:00
},
"acl": ["hr"]
2022-11-14 14:19:16 +00:00
},
{
"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",
2023-02-28 11:46:48 +00:00
"acl": ["hr", "productionAssi"]
2019-01-28 15:24:45 +00:00
}
]
2022-11-14 14:19:16 +00:00
}