@@ -61,6 +61,9 @@ class ConsoleServerController extends EloquentController
6161 */
6262 protected $ object = null ;
6363
64+
65+ protected static bool $ is_admin_route = true ;
66+
6467 /**
6568 * This function sets up the frontend controller
6669 */
@@ -79,36 +82,36 @@ public function feInit(): void
7982 'name ' => [
8083 'title ' => 'Name ' ,
8184 'type ' => self ::$ FE_COL_TYPES [ 'HAS_ONE ' ],
82- 'controller ' => 'console-server-connection ' ,
85+ 'controller ' => 'admin/ console-server-connection ' ,
8386 'action ' => 'list/port ' ,
8487 'idField ' => 'id '
8588 ],
8689 'facility ' => [
8790 'title ' => 'Facility ' ,
8891 'type ' => self ::$ FE_COL_TYPES [ 'HAS_ONE ' ],
89- 'controller ' => 'facility ' ,
92+ 'controller ' => 'admin/ facility ' ,
9093 'action ' => 'view ' ,
9194 'idField ' => 'locationid '
9295 ],
9396 'cabinet ' => [
94- 'title ' => 'Cabinet ' ,
97+ 'title ' => 'Rack ' ,
9598 'type ' => self ::$ FE_COL_TYPES [ 'HAS_ONE ' ],
96- 'controller ' => 'rack ' ,
99+ 'controller ' => 'admin/ rack ' ,
97100 'action ' => 'view ' ,
98101 'idField ' => 'cabinetid '
99102 ],
100103 'vendor ' => [
101104 'title ' => 'Vendor ' ,
102105 'type ' => self ::$ FE_COL_TYPES [ 'HAS_ONE ' ],
103- 'controller ' => 'vendor ' ,
106+ 'controller ' => 'admin/ vendor ' ,
104107 'action ' => 'view ' ,
105108 'idField ' => 'vendorid '
106109 ],
107110 'model ' => 'Model ' ,
108111 'num_connections ' => [
109112 'title ' => 'Connections ' ,
110113 'type ' => self ::$ FE_COL_TYPES [ 'HAS_ONE ' ],
111- 'controller ' => 'console-server-connection ' ,
114+ 'controller ' => 'admin/ console-server-connection ' ,
112115 'action ' => 'list/port ' ,
113116 'idField ' => 'id '
114117 ],
0 commit comments