Cleans up the html
parent
eea3271fe6
commit
5d715e4aac
|
@ -159,6 +159,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||||
if (isset($action) && $action === 'add') {
|
if (isset($action) && $action === 'add') {
|
||||||
include '../app/templates/config-host-add.php';
|
include '../app/templates/config-host-add.php';
|
||||||
} elseif (isset($action) && $action === 'edit') {
|
} elseif (isset($action) && $action === 'edit') {
|
||||||
|
$hostDetails = $hostObject->getHostDetails($platform_id, $agent);
|
||||||
include '../app/templates/config-host-edit.php';
|
include '../app/templates/config-host-edit.php';
|
||||||
} elseif (isset($action) && $action === 'delete') {
|
} elseif (isset($action) && $action === 'delete') {
|
||||||
$hostDetails = $hostObject->getHostDetails($platform_id, $agent);
|
$hostDetails = $hostObject->getHostDetails($platform_id, $agent);
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
|
|
||||||
<!-- widget "config" -->
|
<!-- widget "config" -->
|
||||||
<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 :: edit</p>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="card-text">
|
<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>
|
<p class="text-danger"><strong>this may break everything, use with extreme caution</strong></p>
|
||||||
</div>
|
</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">
|
||||||
|
@ -16,8 +15,9 @@ echo "\n";
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<p class="text-danger"><strong>this may break everything, use with extreme caution</strong></p>
|
<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-outline-secondary btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=config_file" />Cancel</a>
|
||||||
<input type="submit" class="btn btn-danger" value="Save" />
|
|
||||||
|
<input type="submit" class="btn btn-danger btn-sm" value="Save" />
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ echo "\n";
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<a class="btn btn-danger" href="<?= htmlspecialchars($app_root) ?>?page=config&item=config_file&action=edit" />Edit</a>
|
<a class="btn btn-outline-danger btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=config_file&action=edit" />Edit</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /widget "config" -->
|
<!-- /widget "config" -->
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
<!-- widget "config" -->
|
<!-- widget "hosts" -->
|
||||||
<div class="card text-center w-50 mx-auto">
|
<div class="card text-center w-50 mx-lef">
|
||||||
<p class="h4 card-header">Add new host in Jitsi platform <strong><?= htmlspecialchars($platformDetails[0]['name']) ?></strong></p>
|
<p class="h4 card-header">Add new host in Jitsi platform <strong><?= htmlspecialchars($platformDetails[0]['name']) ?></strong></p>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<form method="POST" action="<?= htmlspecialchars($app_root) ?>?page=config&item=host">
|
<form method="POST" action="<?= htmlspecialchars($app_root) ?>?page=config&item=host">
|
||||||
|
@ -41,9 +41,10 @@
|
||||||
<input type="hidden" name="new" value="true" />
|
<input type="hidden" name="new" value="true" />
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<a class="btn btn-secondary" href="<?= htmlspecialchars($app_root) ?>?page=config&item=host" />Cancel</a>
|
<a class="btn btn-outline-secondary btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=host" />Cancel</a>
|
||||||
<input type="submit" class="btn btn-primary" value="Save" />
|
|
||||||
|
<input type="submit" class="btn btn-primary btn-sm" value="Save" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /widget "config" -->
|
<!-- /widget "hosts" -->
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
<!-- widget "hosts" -->
|
<!-- widget "hosts" -->
|
||||||
<div class="card text-center w-50 mx-auto">
|
<div class="card text-center w-50 mx-lef">
|
||||||
<p class="h4 card-header">Jilo configuration for Jitsi platform <strong>"<?= htmlspecialchars($platformDetails[0]['name']) ?>"</strong></p>
|
<p class="h4 card-header">Jilo configuration for Jitsi platform <strong>"<?= htmlspecialchars($platformDetails[0]['name']) ?>"</strong></p>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<p class="card-text">delete a host:</p>
|
<p class="card-text">delete a host:</p>
|
||||||
|
@ -24,8 +24,9 @@ foreach ($hostDetails[0] as $key => $value) {
|
||||||
<input type="hidden" name="delete" value="true" />
|
<input type="hidden" name="delete" value="true" />
|
||||||
<p class="h5 text-danger">Are you sure you want to delete this host?</p>
|
<p class="h5 text-danger">Are you sure you want to delete this host?</p>
|
||||||
<br />
|
<br />
|
||||||
<a class="btn btn-secondary" href="<?= htmlspecialchars($app_root) ?>?page=config&item=host#platform<?= htmlspecialchars($platform_id) ?>host<?= htmlspecialchars($hostDetails[0]['id']) ?>" />Cancel</a>
|
<a class="btn btn-outline-secondary btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=host#platform<?= htmlspecialchars($platform_id) ?>host<?= htmlspecialchars($hostDetails[0]['id']) ?>" />Cancel</a>
|
||||||
<input type="submit" class="btn btn-danger" value="Delete" />
|
|
||||||
|
<input type="submit" class="btn btn-danger btn-sm" value="Delete" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -0,0 +1,52 @@
|
||||||
|
|
||||||
|
<!-- widget "hosts" -->
|
||||||
|
<div class="card text-center w-50 mx-lef">
|
||||||
|
<p class="h4 card-header">Jilo configuration for Jitsi platform <strong>"<?= htmlspecialchars($platformDetails[0]['name']) ?>"</strong></p>
|
||||||
|
<div class="card-body">
|
||||||
|
<p class="card-text">edit host details:</p>
|
||||||
|
<form method="POST" action="<?= htmlspecialchars($app_root) ?>?page=config&item=host">
|
||||||
|
|
||||||
|
<div class="row mb-3">
|
||||||
|
<div class="col-md-4 text-end">
|
||||||
|
<label for="address" class="form-label">address</label>
|
||||||
|
<span class="text-danger" style="margin-right: -12px;">*</span>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-8">
|
||||||
|
<input class="form-control" type="text" name="address" value="<?= htmlspecialchars($hostDetails[0]['address'] ?? '') ?>" required autofocus />
|
||||||
|
<p class="text-start"><small>DNS name or IP address of the machine</small></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row mb-3">
|
||||||
|
<div class="col-md-4 text-end">
|
||||||
|
<label for="port" class="form-label">port</label>
|
||||||
|
<span class="text-danger" style="margin-right: -12px;">*</span>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-8">
|
||||||
|
<input class="form-control" type="text" name="port" value="<?= htmlspecialchars($hostDetails[0]['port'] ?? '') ?>" required />
|
||||||
|
<p class="text-start"><small>port on which the Jilo Agent is listening</small></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row mb-3">
|
||||||
|
<div class="col-md-4 text-end">
|
||||||
|
<label for="name" class="form-label">name</label>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-8">
|
||||||
|
<input class="form-control" type="text" name="name" value="<?= htmlspecialchars($hostDetails[0]['name'] ?? '') ?>" />
|
||||||
|
<p class="text-start"><small>description or name of the host (optional)</small></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<input type="hidden" name="platform" value="<?= htmlspecialchars($platform_id) ?>" />
|
||||||
|
<input type="hidden" name="item" value="host" />
|
||||||
|
<input type="hidden" name="host" value="<?= htmlspecialchars($hostDetails[0]['id']) ?>" />
|
||||||
|
|
||||||
|
<br />
|
||||||
|
<a class="btn btn-outline-secondary btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=host#platform<?= htmlspecialchars($platform_id) ?>host<?= htmlspecialchars($hostDetails[0]['id']) ?>" />Cancel</a>
|
||||||
|
|
||||||
|
<input type="submit" class="btn btn-primary btn-sm" value="Save" />
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- /widget "hosts" -->
|
|
@ -13,18 +13,21 @@
|
||||||
<p class="text-start">
|
<p class="text-start">
|
||||||
platform <strong><?= htmlspecialchars($platform_array['name']) ?></strong>
|
platform <strong><?= htmlspecialchars($platform_array['name']) ?></strong>
|
||||||
</p>
|
</p>
|
||||||
|
<ul class="text-start" style="padding-left: 50px;">
|
||||||
<?php foreach ($hosts as $host_array) { ?>
|
<?php foreach ($hosts as $host_array) { ?>
|
||||||
<a name="platform<?= htmlspecialchars($platform_array['id']) ?>host<?= htmlspecialchars($host_array['id']) ?>"></a>
|
<li style="padding-bottom: 10px;">
|
||||||
<p class="text-start" style="padding-left: 50px;">
|
<a name="platform<?= htmlspecialchars($platform_array['id']) ?>host<?= htmlspecialchars($host_array['id']) ?>"></a>
|
||||||
<?= htmlspecialchars($host_array['address']) ?>:<?= htmlspecialchars($host_array['port']) ?>
|
<span>
|
||||||
|
<?= htmlspecialchars($host_array['address']) ?>:<?= htmlspecialchars($host_array['port']) ?>
|
||||||
<a class="btn btn-outline-secondary btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=host&platform=<?= htmlspecialchars($host_array['platform_id']) ?>&host=<?= htmlspecialchars($host_array['id']) ?>&action=edit">edit host</a>
|
|
||||||
<a class="btn btn-outline-danger btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=host&platform=<?= htmlspecialchars($host_array['platform_id']) ?>&host=<?= htmlspecialchars($host_array['id']) ?>&action=delete">delete host</a>
|
<a class="btn btn-outline-secondary btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=host&platform=<?= htmlspecialchars($host_array['platform_id']) ?>&host=<?= htmlspecialchars($host_array['id']) ?>&action=edit">edit host</a>
|
||||||
</p>
|
<a class="btn btn-outline-danger btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=host&platform=<?= htmlspecialchars($host_array['platform_id']) ?>&host=<?= htmlspecialchars($host_array['id']) ?>&action=delete">delete host</a>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
</ul>
|
||||||
<p class="text-start" style="padding-left: 50px;">
|
<p class="text-start" style="padding-left: 50px;">
|
||||||
total <?= htmlspecialchars(count($hosts)) ?> <?= htmlspecialchars(count($hosts)) === 1 ? 'jilo host' : 'jilo hosts' ?>
|
total <?= htmlspecialchars(count($hosts)) ?> jilo <?= htmlspecialchars(count($hosts)) === '1' ? 'host' : 'hosts' ?>
|
||||||
|
|
||||||
<a class="btn btn-outline-secondary btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=host&platform=<?= htmlspecialchars($platform_array['id']) ?>&action=add">add new</a>
|
<a class="btn btn-outline-secondary btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=host&platform=<?= htmlspecialchars($platform_array['id']) ?>&action=add">add new</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
<!-- widget "config" -->
|
<!-- widget "config" -->
|
||||||
<div class="card text-center w-50 mx-auto">
|
<div class="card text-center w-50 mx-lef">
|
||||||
<p class="h4 card-header">Add new Jitsi platform</p>
|
<p class="h4 card-header">Add new Jitsi platform</p>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<!--p class="card-text">add new platform:</p-->
|
<!--p class="card-text">add new platform:</p-->
|
||||||
|
@ -42,8 +42,9 @@
|
||||||
<input type="hidden" name="new" value="true" />
|
<input type="hidden" name="new" value="true" />
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<a class="btn btn-secondary" href="<?= htmlspecialchars($app_root) ?>?page=config&item=platform" />Cancel</a>
|
<a class="btn btn-outline-secondary btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=platform" />Cancel</a>
|
||||||
<input type="submit" class="btn btn-primary" value="Save" />
|
|
||||||
|
<input type="submit" class="btn btn-primary btn-sm" value="Save" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
|
|
||||||
<!-- widget "config" -->
|
<!-- widget "config" -->
|
||||||
<div class="card text-center w-50 mx-auto">
|
<div class="card text-center w-50 mx-lef">
|
||||||
<p class="h4 card-header">Jilo web configuration for Jitsi platform <strong>"<?= htmlspecialchars($platformDetails[0]['name']) ?>"</strong></p>
|
<p class="h4 card-header">Jilo configuration for Jitsi platform <strong>"<?= htmlspecialchars($platformDetails[0]['name']) ?>"</strong> :: delete</p>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<p class="card-text">delete a platform:</p>
|
|
||||||
<form method="POST" action="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=config">
|
<form method="POST" action="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=config">
|
||||||
<?php
|
<?php
|
||||||
foreach ($platformDetails[0] as $key => $value) {
|
foreach ($platformDetails[0] as $key => $value) {
|
||||||
|
@ -24,8 +23,9 @@ foreach ($platformDetails[0] as $key => $value) {
|
||||||
<input type="hidden" name="delete" value="true" />
|
<input type="hidden" name="delete" value="true" />
|
||||||
<p class="h5 text-danger">Are you sure you want to delete this platform?</p>
|
<p class="h5 text-danger">Are you sure you want to delete this platform?</p>
|
||||||
<br />
|
<br />
|
||||||
<a class="btn btn-secondary" href="<?= htmlspecialchars($app_root) ?>?page=config&item=platform#platform<?= htmlspecialchars($platform_id) ?>" />Cancel</a>
|
<a class="btn btn-outline-secondary btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=platform#platform<?= htmlspecialchars($platform_id) ?>" />Cancel</a>
|
||||||
<input type="submit" class="btn btn-danger" value="Delete" />
|
|
||||||
|
<input type="submit" class="btn btn-danger btn-sm" value="Delete" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
|
|
||||||
<!-- widget "config" -->
|
<!-- widget "config" -->
|
||||||
<div class="card text-center w-50 mx-auto">
|
<div class="card text-center w-50 mx-lef">
|
||||||
<p class="h4 card-header">Jilo web configuration for Jitsi platform <strong>"<?= htmlspecialchars($platformDetails[0]['name']) ?>"</strong></p>
|
<p class="h4 card-header">Jilo configuration for Jitsi platform <strong>"<?= htmlspecialchars($platformDetails[0]['name']) ?>"</strong> :: edit</p>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<p class="card-text">edit the platform details:</p>
|
|
||||||
<form method="POST" action="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=config">
|
<form method="POST" action="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=config">
|
||||||
<?php
|
<?php
|
||||||
foreach ($platformDetails[0] as $key => $value) {
|
foreach ($platformDetails[0] as $key => $value) {
|
||||||
|
@ -28,8 +27,9 @@ foreach ($platformDetails[0] as $key => $value) {
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<br />
|
<br />
|
||||||
<input type="hidden" name="platform" value="<?= htmlspecialchars($platform_id) ?>" />
|
<input type="hidden" name="platform" value="<?= htmlspecialchars($platform_id) ?>" />
|
||||||
<a class="btn btn-secondary" href="<?= htmlspecialchars($app_root) ?>?page=config&item=platform#platform<?= htmlspecialchars($platform_id) ?>" />Cancel</a>
|
<a class="btn btn-outline-secondary btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=platform#platform<?= htmlspecialchars($platform_id) ?>" />Cancel</a>
|
||||||
<input type="submit" class="btn btn-primary" value="Save" />
|
|
||||||
|
<input type="submit" class="btn btn-primary btn-sm" value="Save" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue