Compacts the agent config listing

main
Yasen Pramatarov 2024-10-03 11:40:41 +03:00
parent 1468843cac
commit 2d8bc53195
1 changed files with 10 additions and 6 deletions

View File

@ -81,18 +81,22 @@ echo "\n";
<a class="btn btn-danger" style="padding: 2px;" href="<?= $app_root ?>?page=config&platform=<?= htmlspecialchars($agent_array['platform_id'])?>&agent=<?= htmlspecialchars($agent_array['id']) ?>&action=delete">delete agent</a> <a class="btn btn-danger" style="padding: 2px;" href="<?= $app_root ?>?page=config&platform=<?= htmlspecialchars($agent_array['platform_id'])?>&agent=<?= htmlspecialchars($agent_array['id']) ?>&action=delete">delete agent</a>
</div> </div>
<div style="padding-left: 100px; padding-bottom: 20px;"> <div style="padding-left: 100px; padding-bottom: 20px;">
<?php foreach ($agent_array as $key => $value) {
if ($key === 'id') continue;
?>
<div class="row mb-1" style="padding-left: 100px;"> <div class="row mb-1" style="padding-left: 100px;">
<div class="col-md-4 text-end"> <div class="col-md-4 text-end">
<?= $key ?>: agent type:
</div> </div>
<div class="border col-md-8 text-start"> <div class="border col-md-8 text-start">
<?= $value ?> <?= $agent_array['agent_description'] ?>
</div>
</div>
<div class="row mb-1" style="padding-left: 100px;">
<div class="col-md-4 text-end">
endpoint:
</div>
<div class="border col-md-8 text-start">
<?= $agent_array['url'].$agent_array['agent_endpoint'] ?>
</div> </div>
</div> </div>
<?php } ?>
</div> </div>
</div> </div>
</div> </div>