Skip to content

Commit 02ab707

Browse files
author
mike_p
committed
Create ids for the html so that css styling can be used
1 parent 6af5e9d commit 02ab707

File tree

1 file changed

+48
-26
lines changed

1 file changed

+48
-26
lines changed

interface/web/admin/lib/module.conf.php

Lines changed: 48 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@
1111

1212
$items[] = array( 'title' => 'Add user',
1313
'target' => 'content',
14-
'link' => 'admin/users_edit.php');
14+
'link' => 'admin/users_edit.php',
15+
'html_id'=> 'user_add');
1516

1617
$items[] = array( 'title' => 'Edit user',
1718
'target' => 'content',
18-
'link' => 'admin/users_list.php');
19+
'link' => 'admin/users_list.php',
20+
'html_id'=> 'user_list');
21+
1922

20-
2123
$module['nav'][] = array( 'title' => 'CP Users',
2224
'open' => 1,
2325
'items' => $items);
@@ -28,13 +30,15 @@
2830
/*
2931
$items[] = array( 'title' => 'Add group',
3032
'target' => 'content',
31-
'link' => 'admin/groups_edit.php');
33+
'link' => 'admin/groups_edit.php',
34+
'html_id'=> 'group_add');
3235
3336
$items[] = array( 'title' => 'Edit group',
3437
'target' => 'content',
35-
'link' => 'admin/groups_list.php');
38+
'link' => 'admin/groups_list.php',
39+
'html_id'=> 'group_list');
40+
3641
37-
3842
$module['nav'][] = array( 'title' => 'Groups',
3943
'open' => 1,
4044
'items' => $items);
@@ -46,24 +50,29 @@
4650
/*
4751
$items[] = array( 'title' => 'Add server',
4852
'target' => 'content',
49-
'link' => 'admin/server_edit.php');
53+
'link' => 'admin/server_edit.php',
54+
'html_id'=> 'server_add');
5055
*/
5156
$items[] = array( 'title' => 'Server Services',
5257
'target' => 'content',
53-
'link' => 'admin/server_list.php');
58+
'link' => 'admin/server_list.php',
59+
'html_id'=> 'server_list');
5460

5561
$items[] = array( 'title' => 'Server Config',
5662
'target' => 'content',
57-
'link' => 'admin/server_config_list.php');
63+
'link' => 'admin/server_config_list.php',
64+
'html_id'=> 'server_config_list');
5865

5966
/*
6067
$items[] = array( 'title' => 'Add Server IP',
6168
'target' => 'content',
62-
'link' => 'admin/server_ip_edit.php');
69+
'link' => 'admin/server_ip_edit.php',
70+
'html_id'=> 'server_ip_edit');
6371
*/
6472
$items[] = array( 'title' => 'Edit Server IP',
6573
'target' => 'content',
66-
'link' => 'admin/server_ip_list.php');
74+
'link' => 'admin/server_ip_list.php',
75+
'html_id'=> 'server_ip_list');
6776

6877

6978
$items[] = array( 'title' => 'Interface Config',
@@ -79,7 +88,8 @@
7988

8089
$items[] = array( 'title' => 'Firewall',
8190
'target' => 'content',
82-
'link' => 'admin/firewall_list.php');
91+
'link' => 'admin/firewall_list.php',
92+
'html_id'=> 'firewall_list');
8393

8494

8595
$module['nav'][] = array( 'title' => 'Firewall',
@@ -93,15 +103,18 @@
93103

94104
$items[] = array( 'title' => 'Repositories',
95105
'target' => 'content',
96-
'link' => 'admin/software_repo_list.php');
106+
'link' => 'admin/software_repo_list.php',
107+
'html_id'=> 'software_repo_list');
97108

98109
$items[] = array( 'title' => 'Packages',
99110
'target' => 'content',
100-
'link' => 'admin/software_package_list.php');
111+
'link' => 'admin/software_package_list.php',
112+
'html_id'=> 'software_package_list');
101113

102114
$items[] = array( 'title' => 'Updates',
103115
'target' => 'content',
104-
'link' => 'admin/software_update_list.php');
116+
'link' => 'admin/software_update_list.php',
117+
'html_id'=> 'software_update_list');
105118

106119
$module['nav'][] = array( 'title' => 'Software',
107120
'open' => 1,
@@ -113,23 +126,28 @@
113126

114127
$items[] = array( 'title' => 'Languages',
115128
'target' => 'content',
116-
'link' => 'admin/language_list.php');
129+
'link' => 'admin/language_list.php',
130+
'html_id'=> 'language_list');
117131

118132
$items[] = array( 'title' => 'New Language',
119133
'target' => 'content',
120-
'link' => 'admin/language_add.php');
121-
134+
'link' => 'admin/language_add.php',
135+
'html_id'=> 'language_add');
136+
122137
$items[] = array( 'title' => 'Merge',
123138
'target' => 'content',
124-
'link' => 'admin/language_complete.php');
139+
'link' => 'admin/language_complete.php',
140+
'html_id'=> 'language_complete');
125141

126142
$items[] = array( 'title' => 'Export',
127143
'target' => 'content',
128-
'link' => 'admin/language_export.php');
144+
'link' => 'admin/language_export.php',
145+
'html_id'=> 'language_export');
129146

130147
$items[] = array( 'title' => 'Import',
131148
'target' => 'content',
132-
'link' => 'admin/language_import.php');
149+
'link' => 'admin/language_import.php',
150+
'html_id'=> 'language_import');
133151

134152
$module['nav'][] = array( 'title' => 'Language Editor',
135153
'open' => 1,
@@ -141,13 +159,15 @@
141159

142160
$items[] = array( 'title' => 'Add user',
143161
'target' => 'content',
144-
'link' => 'admin/remote_user_edit.php');
162+
'link' => 'admin/remote_user_edit.php',
163+
'html_id'=> 'remote_user_add');
145164

146165
$items[] = array( 'title' => 'Edit user',
147166
'target' => 'content',
148-
'link' => 'admin/remote_user_list.php');
167+
'link' => 'admin/remote_user_list.php',
168+
'html_id'=> 'remote_user_list');
169+
149170

150-
151171
$module['nav'][] = array( 'title' => 'Remote Users',
152172
'open' => 1,
153173
'items' => $items);
@@ -157,11 +177,13 @@
157177

158178
$items[] = array( 'title' => 'Do OS-Update',
159179
'target' => 'content',
160-
'link' => 'admin/remote_action_osupdate.php');
180+
'link' => 'admin/remote_action_osupdate.php',
181+
'html_id'=> 'osupdate');
161182

162183
$items[] = array( 'title' => 'Do ISPConfig-Update',
163184
'target' => 'content',
164-
'link' => 'admin/remote_action_ispcupdate.php');
185+
'link' => 'admin/remote_action_ispcupdate.php',
186+
'html_id'=> 'ispcupdate');
165187

166188
$module['nav'][] = array( 'title' => 'Remote Actions',
167189
'open' => 1,

0 commit comments

Comments
 (0)