salix/client/item/routes.json

122 lines
3.2 KiB
JSON

{
"module": "item",
"name": "Items",
"icon": "inbox",
"validations" : true,
"routes": [
{
"url": "/item",
"state": "item",
"abstract": true,
"component": "ui-view"
},
{
"url": "/list?q",
"state": "item.index",
"component": "vn-item-list"
},
{
"url": "/create",
"state": "item.create",
"component": "vn-item-create"
},
{
"url": "/:id",
"state": "item.card",
"abstract": true,
"component": "vn-item-card"
},
{
"url" : "/data",
"state": "item.card.data",
"component": "vn-item-data",
"params": {
"item": "$ctrl.item"
},
"menu": {
"description": "Basic data",
"icon": "settings"
},
"acl": ["buyer"]
},
{
"url" : "/tags",
"state": "item.card.tags",
"component": "vn-item-tags",
"params": {
"item-tags": "$ctrl.itemTags"
},
"menu": {
"description": "Tags",
"icon": "icon-tags"
},
"acl": ["buyer"]
},
{
"url" : "/tax",
"state": "item.card.tax",
"component": "vn-item-tax",
"menu": {
"description": "Tax",
"icon": "folder"
}
},
{
"url" : "/history",
"state": "item.card.history",
"component": "vn-item-history",
"params": {
"item": "$ctrl.item"
},
"menu": {
"description": "History",
"icon": "history"
}
},
{
"url" : "/niche",
"state": "item.card.niche",
"component": "vn-item-niche",
"params": {
"item": "$ctrl.item"
},
"menu": {
"description": "Niche",
"icon": "folder"
},
"acl": ["buyer","replenisher"]
},
{
"url" : "/botanical",
"state": "item.card.botanical",
"component": "vn-item-botanical",
"params": {
"item": "$ctrl.item"
},
"menu": {
"description": "Botanical",
"icon": "folder"
},
"acl": ["buyer"]
},{
"url" : "/barcode",
"state": "item.card.itemBarcode",
"component": "vn-item-barcode",
"params": {
"item": "$ctrl.item"
},
"menu": {
"description": "Barcode",
"icon": "icon-barcode"
},
"acl": ["buyer","replenisher"]
},{
"url" : "/summary",
"state": "item.card.summary",
"component": "vn-item-summary",
"params": {
"item": "$ctrl.item"
}
}
]
}