Puts warnings on config file edit page

main
Yasen Pramatarov 2024-10-30 15:11:27 +02:00
parent 67380b1b3d
commit b67a915ebe
2 changed files with 8 additions and 9 deletions

View File

@ -3,10 +3,10 @@
<div class="card text-center w-75 mx-lef"> <div class="card text-center w-75 mx-lef">
<p class="h4 card-header">Jilo configuration file</p> <p class="h4 card-header">Jilo configuration file</p>
<div class="card-body"> <div class="card-body">
<p class="card-text">editing the Jilo Server configuration file <div class="card-text">
<br /> <p>editing the Jilo Server configuration file</p>
<span class="text-danger"><strong>this may break everything, use with extreme caution</strong></span> <p class="text-danger"><strong>this may break everything, use with extreme caution</strong></p>
</p> </div>
<form method="POST" action="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=config&item=config_file"> <form method="POST" action="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=config&item=config_file">
<?php <?php
@ -15,9 +15,9 @@ editConfig($config, '0');
echo "\n"; echo "\n";
?> ?>
<br /> <p class="text-danger"><strong>this may break everything, use with extreme caution</strong></p>
<a class="btn btn-secondary" href="<?= htmlspecialchars($app_root) ?>?page=config&item=config_file" />Cancel</a> <a class="btn btn-secondary" href="<?= htmlspecialchars($app_root) ?>?page=config&item=config_file" />Cancel</a>
<input type="submit" class="btn btn-primary" value="Save" /> <input type="submit" class="btn btn-danger" value="Save" />
</form> </form>

View File

@ -10,9 +10,8 @@ renderConfig($config, '0');
echo "\n"; echo "\n";
?> ?>
</div>
</div>
<br /> <br />
<a class="btn btn-danger" href="<?= htmlspecialchars($app_root) ?>?page=config&item=config_file&action=edit" />Edit</a> <a class="btn btn-danger" href="<?= htmlspecialchars($app_root) ?>?page=config&item=config_file&action=edit" />Edit</a>
</div>
</div>
<!-- /widget "config" --> <!-- /widget "config" -->