salix/client/ticket/routes.json

187 lines
5.1 KiB
JSON

{
"module": "ticket",
"name": "Tickets",
"icon": "icon-ticket",
"validations": true,
"routes": [
{
"url": "/ticket",
"state": "ticket",
"abstract": true,
"component": "ui-view"
},
{
"url": "/list?q",
"state": "ticket.list",
"component": "vn-ticket-list"
},
{
"url": "/create",
"state": "ticket.create",
"component": "vn-ticket-create"
},
{
"url": "/:id",
"state": "ticket.card",
"abstract": true,
"component": "vn-ticket-card"
},
{
"url": "/summary",
"state": "ticket.card.summary",
"component": "vn-ticket-summary",
"params": {
"ticket": "$ctrl.ticket"
}
},
{
"url" : "/data",
"state": "ticket.card.data",
"component": "vn-ticket-data",
"abstract": true,
"params": {
"ticket": "$ctrl.ticket"
}
},
{
"url" : "/step-one",
"state": "ticket.card.data.stepOne",
"component": "vn-ticket-data-step-one",
"params": {
"ticket": "$ctrl.data"
},
"menu": {
"description": "Basic data",
"icon": "settings"
}
},
{
"url" : "/step-two",
"state": "ticket.card.data.stepTwo",
"component": "vn-ticket-data-step-two",
"params": {
"ticket": "$ctrl.data"
}
},
{
"url" : "/step-three",
"state": "ticket.card.data.stepThree",
"component": "vn-ticket-data-step-three",
"params": {
"ticket": "$ctrl.data"
}
},
{
"url": "/observation",
"state": "ticket.card.observation",
"component": "vn-ticket-observation",
"params": {
"ticket": "$ctrl.ticket"
},
"menu": {
"description": "Notes",
"icon": "insert_drive_file"
}
},
{
"url": "/volume",
"state": "ticket.card.volume",
"component": "vn-ticket-volume",
"params": {
"ticket": "$ctrl.ticket"
},
"menu": {
"description": "Volume",
"icon": "icon-volume"
}
},
{
"url": "/expedition",
"state": "ticket.card.expedition",
"component": "vn-ticket-expedition",
"params": {
"ticket": "$ctrl.ticket"
},
"menu": {
"description": "Expedition",
"icon": "icon-volum"
}
},
{
"url" : "/package",
"abstract": true,
"state": "ticket.card.package",
"component": "ui-view"
},
{
"url" : "/index",
"state": "ticket.card.package.index",
"component": "vn-ticket-package-index",
"params": {
"ticket": "$ctrl.ticket"
},
"menu": {
"description": "Packages",
"icon": "icon-bucket"
}
},
{
"url": "/tracking",
"state": "ticket.card.tracking",
"abstract": true,
"component": "ui-view"
},
{
"url" : "/index",
"state": "ticket.card.tracking.index",
"component": "vn-ticket-tracking",
"params": {
"ticket": "$ctrl.ticket"
},
"menu": {
"description": "Tracking",
"icon": "remove_red_eye"
}
},
{
"url": "/edit",
"state": "ticket.card.tracking.edit",
"component": "vn-ticket-tracking-edit",
"params": {
"ticket": "$ctrl.ticket"
}
},
{
"url": "/create",
"state": "ticket.card.tracking.create",
"component": "vn-ticket-tracking-create",
"params": {
"client": "$ctrl.client"
}
},
{
"url" : "/sale",
"state": "ticket.card.sale",
"component": "vn-ticket-sale",
"params": {
"ticket": "$ctrl.ticket"
},
"menu": {
"description": "Sale",
"icon": "icon-lines"
}
},
{
"url" : "/sale-checked",
"state": "ticket.card.saleChecked",
"component": "vn-ticket-sale-checked",
"params": {
"ticket": "$ctrl.ticket"
},
"menu": {
"description": "Sale checked",
"icon": "assignment"
}
}
]
}