Dashboard card display improvements.
This commit is contained in:
@@ -15,7 +15,7 @@ function showCard($module_name, $page_name, $width = 3)
|
|||||||
{
|
{
|
||||||
$page = $GLOBALS['pages'][$module_name][$page_name];
|
$page = $GLOBALS['pages'][$module_name][$page_name];
|
||||||
?>
|
?>
|
||||||
<div class="col-md-<?php echo $width ?> col-sm-6 ps-md-0 pb-3">
|
<div class="col">
|
||||||
<a href="<?php echo $page['page_url'] ?>">
|
<a href="<?php echo $page['page_url'] ?>">
|
||||||
<div class="card-pricing2 card-<?php echo $page['page_color'] ?> text-center h-100">
|
<div class="card-pricing2 card-<?php echo $page['page_color'] ?> text-center h-100">
|
||||||
<div class="pricing-header">
|
<div class="pricing-header">
|
||||||
@@ -37,96 +37,32 @@ function showCard($module_name, $page_name, $width = 3)
|
|||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
<div class="row row-cols-1 row-cols-md-3 row-cols-sm-2 g-3">
|
||||||
<div class="row">
|
|
||||||
<div class="row mt-3">
|
|
||||||
<?php
|
|
||||||
if ($GLOBALS['modules_enabled']['customers'] && $API->checkPermissions('customer-companies', 'RO', true)) { ?>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="row ">
|
|
||||||
<div class="col-auto">
|
|
||||||
<h3><?php echo __('customers') ?></h3>
|
|
||||||
</div>
|
|
||||||
<div class="col mt-1">
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<?php
|
<?php
|
||||||
|
if ($GLOBALS['modules_enabled']['customers'] && $API->checkPermissions('customer-companies', 'RO', true)) {
|
||||||
showCard('customers', 'companies', '6');
|
showCard('customers', 'companies', '6');
|
||||||
?>
|
}
|
||||||
</div>
|
|
||||||
</div>
|
if ($GLOBALS['modules_enabled']['servers'] && $API->checkPermissions('servers', 'RO', true)) {
|
||||||
<?php }
|
|
||||||
if ($GLOBALS['modules_enabled']['servers'] && $API->checkPermissions('servers', 'RO', true)) { ?>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-auto">
|
|
||||||
<h3><?php echo __('servers') ?></h3>
|
|
||||||
</div>
|
|
||||||
<div class="col mt-1">
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<?php
|
|
||||||
showCard('servers', 'server_overview', '6');
|
showCard('servers', 'server_overview', '6');
|
||||||
?>
|
}
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php if ($GLOBALS['modules_enabled']['office'] && $API->checkPermissions('ofice-stompjes', 'RO', true)) { ?>
|
if ($GLOBALS['modules_enabled']['office'] && $API->checkPermissions('ofice-stompjes', 'RO', true)) {
|
||||||
<div class="row mt-3">
|
|
||||||
<div class="col-auto">
|
|
||||||
<h3><?php echo __('office') ?></h3>
|
|
||||||
</div>
|
|
||||||
<div class="col mt-1">
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<?php
|
|
||||||
showCard('office', 'stompjeslist');
|
showCard('office', 'stompjeslist');
|
||||||
?>
|
}
|
||||||
</div>
|
|
||||||
<?php }
|
|
||||||
|
|
||||||
if ($GLOBALS['modules_enabled']['autop']) { ?>
|
if ($GLOBALS['modules_enabled']['autop']) {
|
||||||
<div class="row">
|
|
||||||
<div class="col-auto">
|
|
||||||
<h3><?php echo __('autoproviosioning') ?></h3>
|
|
||||||
</div>
|
|
||||||
<div class="col mt-1">
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row align-items-stretch">
|
|
||||||
<?php
|
|
||||||
showCard('autop', 'platforms');
|
showCard('autop', 'platforms');
|
||||||
showCard('autop', 'vendors');
|
showCard('autop', 'vendors');
|
||||||
showCard('autop', 'devices');
|
showCard('autop', 'devices');
|
||||||
showCard('autop', 'device_settings');
|
showCard('autop', 'device_settings');
|
||||||
showCard('autop', 'provisioning');
|
showCard('autop', 'provisioning');
|
||||||
showCard('autop', 'phonebooks');
|
showCard('autop', 'phonebooks');
|
||||||
?>
|
}
|
||||||
</div>
|
|
||||||
<?php } ?>
|
if ($GLOBALS['modules_enabled']['system']) {
|
||||||
<?php if ($GLOBALS['modules_enabled']['system']) { ?>
|
|
||||||
<div class="row mt-3">
|
|
||||||
<div class="col-auto">
|
|
||||||
<h3><?php echo __('portal_management') ?></h3>
|
|
||||||
</div>
|
|
||||||
<div class="col mt-1">
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<?php
|
|
||||||
showCard('system', 'access_control');
|
showCard('system', 'access_control');
|
||||||
showCard('system', 'systemconfig');
|
showCard('system', 'systemconfig');
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user