diff --git a/app/pages/config.php b/app/pages/config.php index cbc2a7f..ee2fcaf 100644 --- a/app/pages/config.php +++ b/app/pages/config.php @@ -94,6 +94,8 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { break; default: if ($userObject->hasRight($user_id, 'view config file')) { + require '../app/classes/agent.php'; + $agentObject = new Agent($dbWeb); include '../app/templates/config-list.php'; } else { include '../app/templates/unauthorized.php'; diff --git a/app/templates/config-list.php b/app/templates/config-list.php index 44a3615..f947fc0 100644 --- a/app/templates/config-list.php +++ b/app/templates/config-list.php @@ -11,47 +11,95 @@ echo "\n"; ?>
platforms configuration add
+platforms configuration add new
- +getAgentDetails($platform_array['id']); +?>jilo agents on platform = $platform_array['id'] ?> (= $platform_array['name'] ?>)
+
+ total = count($agents) ?> = count($agents) === 1 ? 'jilo agent' : 'jilo agents' ?>
+
+ add new
+
+