f2cd6e78534942265703dc736256493e070552e2
[oweals/luci.git] / applications / luci-app-nut / root / usr / share / luci / menu.d / luci-app-nut.json
1 {
2         "admin/services/nut": {
3                 "title": "Network UPS Tools",
4                 "action": {
5                         "type": "firstchild"
6                 },
7                 "depends": {
8                         "uci": [
9                                 { "nut_server": true },
10                                 { "nut_monitor": true },
11                                 { "nut_cgi": true }
12                         ]
13                 }
14         },
15
16         "admin/services/nut/server": {
17                 "title": "Network UPS Tools (Server)",
18                 "order": 1,
19                 "action": {
20                         "type": "cbi",
21                         "path": "nut_server",
22                         "post": { "cbi.submit": true }
23                 },
24                 "depends": {
25                         "uci": { "nut_server": true }
26                 }
27         },
28
29         "admin/services/nut/monitor": {
30                 "title": "Network UPS Tools (Monitor)",
31                 "order": 2,
32                 "action": {
33                         "type": "cbi",
34                         "path": "nut_monitor",
35                         "post": { "cbi.submit": true }
36                 },
37                 "depends": {
38                         "uci": { "nut_monitor": true }
39                 }
40         },
41
42         "admin/services/nut/cgi": {
43                 "title": "Network UPS Tools (CGI)",
44                 "order": 3,
45                 "action": {
46                         "type": "cbi",
47                         "path": "nut_cgi",
48                         "post": { "cbi.submit": true }
49                 },
50                 "depends": {
51                         "uci": { "nut_cgi": true }
52                 }
53         }
54 }