Fixes error in web path

main
Yasen Pramatarov 2024-09-04 13:11:17 +03:00
parent dc9462260d
commit 48a0cf9e86
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ echo "\n";
?> ?>
<hr /> <hr />
<p class="card-text">platforms configuration &nbsp;<a class="btn btn-secondary" style="padding: 0px;" href="/jilo-web/?page=config&action=add">add</a></p> <p class="card-text">platforms configuration &nbsp;<a class="btn btn-secondary" style="padding: 0px;" href="<?= $app_root ?>?page=config&action=add">add</a></p>
<?php foreach ($platformsAll as $platform_array) { ?> <?php foreach ($platformsAll as $platform_array) { ?>
@ -22,11 +22,11 @@ echo "\n";
<?= $platform_array['id'] ?>: <?= $platform_array['id'] ?>:
</div> </div>
<div class="col-md-8 text-start"> <div class="col-md-8 text-start">
<a class="btn btn-secondary" style="padding: 2px;" href="/jilo-web/?platform=<?= htmlspecialchars($platform_array['id']) ?>&page=config&action=edit">edit</a> <a class="btn btn-secondary" style="padding: 2px;" href="<?= $app_root ?>?platform=<?= htmlspecialchars($platform_array['id']) ?>&page=config&action=edit">edit</a>
<?php if (count($platformsAll) <= 1) { ?> <?php if (count($platformsAll) <= 1) { ?>
<span class="btn btn-light" style="padding: 2px;" href="#" data-toggle="tooltip" data-placement="right" data-offset="30.0" title="can't delete the last platform">delete</span> <span class="btn btn-light" style="padding: 2px;" href="#" data-toggle="tooltip" data-placement="right" data-offset="30.0" title="can't delete the last platform">delete</span>
<?php } else { ?> <?php } else { ?>
<a class="btn btn-danger" style="padding: 2px;" href="/jilo-web/?platform=<?= htmlspecialchars($platform_array['id'])?>&page=config&action=delete">delete</a> <a class="btn btn-danger" style="padding: 2px;" href="<?= $app_root ?>?platform=<?= htmlspecialchars($platform_array['id'])?>&page=config&action=delete">delete</a>
<?php } ?> <?php } ?>
</div> </div>
<div style="padding-left: 100px; padding-bottom: 20px;"> <div style="padding-left: 100px; padding-bottom: 20px;">