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">
<p class="h4 card-header">Jilo configuration file</p>
<div class="card-body">
<p class="card-text">editing the Jilo Server configuration file
<br />
<span class="text-danger"><strong>this may break everything, use with extreme caution</strong></span>
</p>
<div class="card-text">
<p>editing the Jilo Server configuration file</p>
<p class="text-danger"><strong>this may break everything, use with extreme caution</strong></p>
</div>
<form method="POST" action="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=config&item=config_file">
<?php
@ -15,9 +15,9 @@ editConfig($config, '0');
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>
<input type="submit" class="btn btn-primary" value="Save" />
<input type="submit" class="btn btn-danger" value="Save" />
</form>

View File

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