2024-07-29 13:50:16 +00:00
2024-08-07 08:13:55 +00:00
<!-- widget " config " -->
2024-08-25 10:24:48 +00:00
< div class = " card text-center w-75 mx-lef " >
2024-08-19 10:25:09 +00:00
< p class = " h4 card-header " > Jilo web configuration </ p >
< div class = " card-body " >
2024-09-04 09:53:02 +00:00
< p class = " card-text " > main variables </ p >
2024-08-13 19:46:56 +00:00
< ? php
include '../app/helpers/render.php' ;
2024-08-19 10:25:09 +00:00
renderConfig ( $config , '0' );
2024-08-13 19:46:56 +00:00
echo " \n " ;
?>
2024-09-04 09:53:02 +00:00
< hr />
2024-09-04 10:11:17 +00:00
< 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 >
2024-09-04 09:53:02 +00:00
< ? php foreach ( $platformsAll as $platform_array ) { ?>
< div class = " row mb-3 " style = " padding-left: 0px; " >
< div class = " border bg-light " style = " padding-left: 50px; padding-bottom: 20px; padding-top: 20px; " >
< div class = " row mb-1 " style = " padding-left: 0px; " >
< div class = " col-md-4 text-end " >
2024-09-04 22:06:38 +00:00
platform id < ? = $platform_array [ 'id' ] ?> :
2024-09-04 09:53:02 +00:00
</ div >
< div class = " col-md-8 text-start " >
2024-09-04 10:11:17 +00:00
< a class = " btn btn-secondary " style = " padding: 2px; " href = " <?= $app_root ?>?platform=<?= htmlspecialchars( $platform_array['id'] ) ?>&page=config&action=edit " > edit </ a >
2024-09-04 09:53:02 +00:00
< ? 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 >
< ? php } else { ?>
2024-09-04 10:11:17 +00:00
< a class = " btn btn-danger " style = " padding: 2px; " href = " <?= $app_root ?>?platform=<?= htmlspecialchars( $platform_array['id'] )?>&page=config&action=delete " > delete </ a >
2024-09-04 09:53:02 +00:00
< ? php } ?>
</ div >
< div style = " padding-left: 100px; padding-bottom: 20px; " >
< ? php foreach ( $platform_array as $key => $value ) {
if ( $key === 'id' ) continue ;
?>
< div class = " row mb-1 " style = " padding-left: 100px; " >
< div class = " col-md-4 text-end " >
< ? = $key ?> :
</ div >
< div class = " border col-md-8 text-start " >
< ? = $value ?>
</ div >
</ div >
< ? php } ?>
</ div >
2024-09-04 22:06:38 +00:00
< div class = " col-md-4 text-end " >
configured jilo agents :
</ div >
< div class = " col-md-8 text-start " >
0
< a class = " btn btn-secondary " style = " padding: 2px; margin-left: 10px; " href = " <?= $app_root ?>?platform=<?= htmlspecialchars( $platform_array['id'] ) ?>&page=agents " > configure </ a >
</ div >
2024-09-04 09:53:02 +00:00
</ div >
</ div >
</ div >
< ? php } ?>
2024-08-19 10:25:09 +00:00
</ div >
2024-08-07 08:13:55 +00:00
</ div >
<!-- / widget " config " -->