jilo-web/app/templates/config-delete-agent.php

33 lines
1.8 KiB
PHP
Raw Normal View History

2024-09-04 22:06:38 +00:00
<!-- widget "agents" -->
<div class="card text-center w-50 mx-auto">
2024-10-04 08:36:45 +00:00
<p class="h4 card-header">Jilo Agent configuration for Jitsi platform <strong>"<?= $platformDetails[0]['name'] ?>"</strong></p>
2024-09-04 22:06:38 +00:00
<div class="card-body">
<p class="card-text">delete an agent:</p>
2024-10-04 08:36:45 +00:00
<form method="POST" action="<?= $app_root ?>?platform=<?= $platform_id ?>&page=config">
2024-09-04 22:06:38 +00:00
<?php
foreach ($agentDetails[0] as $key => $value) {
// if ($key === 'id') continue;
?>
<div class="row mb-3">
<div class="col-md-4 text-end">
2024-10-04 08:36:45 +00:00
<label for="<?= $key ?>" class="form-label"><?= $key ?>:</label>
2024-09-04 22:06:38 +00:00
</div>
<div class="col-md-8">
2024-10-04 08:36:45 +00:00
<div class="text-start"><?= $value ?? '')?></div>
<input type="hidden" name="<?= $key ?>" value="<?= $value ?? '' ?>" />
2024-09-04 22:06:38 +00:00
</div>
</div>
<?php } ?>
<br />
2024-10-04 08:36:45 +00:00
<input type="hidden" name="agent" value="<?= $agentDetails[0]['id'] ?>" />
2024-09-04 22:06:38 +00:00
<input type="hidden" name="delete" value="true" />
<p class="h5 text-danger">Are you sure you want to delete this agent?</p>
<br />
2024-10-04 08:36:45 +00:00
<a class="btn btn-secondary" href="<?= $app_root ?>?page=config#platform<?= $platform_id ?>agent<?= $agentDetails[0]['id'] ?>" />Cancel</a>
2024-09-04 22:06:38 +00:00
<input type="submit" class="btn btn-danger" value="Delete" />
</form>
</div>
</div>
<!-- /widget "agents" -->