{ "module": "zone", "name": "Zones", "icon" : "icon-zone", "validations" : true, "dependencies": ["worker"], "menus": { "main": [ {"state": "zone.index", "icon": "icon-zone"}, {"state": "zone.deliveryDays", "icon": "today"}, {"state": "zone.upcomingDeliveries", "icon": "today"} ], "card": [ {"state": "zone.card.basicData", "icon": "settings"}, {"state": "zone.card.location", "icon": "my_location"}, {"state": "zone.card.warehouses", "icon": "home"}, {"state": "zone.card.events", "icon": "today"} ] }, "routes": [ { "url": "/zone", "state": "zone", "abstract": true, "component": "vn-zone", "description": "Zones" }, { "url": "/index?q", "state": "zone.index", "component": "vn-zone-index", "description": "Zones" }, { "url": "/delivery-days?q", "state": "zone.deliveryDays", "component": "vn-zone-delivery-days", "description": "Delivery days" }, { "url": "/upcoming-deliveries?q", "state": "zone.upcomingDeliveries", "component": "vn-upcoming-deliveries", "description": "Upcoming deliveries" }, { "url": "/create", "state": "zone.create", "component": "vn-zone-create", "description": "New zone" }, { "url": "/:id", "state": "zone.card", "component": "vn-zone-card", "abstract": true, "description": "Detail" }, { "url": "/summary", "state": "zone.card.summary", "component": "vn-zone-summary", "description": "Summary", "params": { "zone": "$ctrl.zone" } }, { "url": "/basic-data", "state": "zone.card.basicData", "component": "vn-zone-basic-data", "description": "Basic data", "params": { "zone": "$ctrl.zone" } }, { "url": "/warehouses", "state": "zone.card.warehouses", "component": "vn-zone-warehouses", "description": "Warehouses" }, { "url": "/events", "state": "zone.card.events", "component": "vn-zone-events", "description": "Calendar" }, { "url": "/location?q", "state": "zone.card.location", "component": "vn-zone-location", "description": "Locations", "params": { "zone": "$ctrl.zone" } } ] }