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];
|
||||
?>
|
||||
<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'] ?>">
|
||||
<div class="card-pricing2 card-<?php echo $page['page_color'] ?> text-center h-100">
|
||||
<div class="pricing-header">
|
||||
@@ -37,96 +37,32 @@ function showCard($module_name, $page_name, $width = 3)
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="row row-cols-1 row-cols-md-3 row-cols-sm-2 g-3">
|
||||
<?php
|
||||
if ($GLOBALS['modules_enabled']['customers'] && $API->checkPermissions('customer-companies', 'RO', true)) {
|
||||
showCard('customers', 'companies', '6');
|
||||
}
|
||||
|
||||
<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
|
||||
showCard('customers', 'companies', '6');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?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');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
if ($GLOBALS['modules_enabled']['servers'] && $API->checkPermissions('servers', 'RO', true)) {
|
||||
showCard('servers', 'server_overview', '6');
|
||||
}
|
||||
|
||||
<?php 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');
|
||||
?>
|
||||
</div>
|
||||
<?php }
|
||||
if ($GLOBALS['modules_enabled']['office'] && $API->checkPermissions('ofice-stompjes', 'RO', true)) {
|
||||
showCard('office', 'stompjeslist');
|
||||
}
|
||||
|
||||
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', 'vendors');
|
||||
showCard('autop', 'devices');
|
||||
showCard('autop', 'device_settings');
|
||||
showCard('autop', 'provisioning');
|
||||
showCard('autop', 'phonebooks');
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?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', 'systemconfig');
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
if ($GLOBALS['modules_enabled']['autop']) {
|
||||
showCard('autop', 'platforms');
|
||||
showCard('autop', 'vendors');
|
||||
showCard('autop', 'devices');
|
||||
showCard('autop', 'device_settings');
|
||||
showCard('autop', 'provisioning');
|
||||
showCard('autop', 'phonebooks');
|
||||
}
|
||||
|
||||
if ($GLOBALS['modules_enabled']['system']) {
|
||||
showCard('system', 'access_control');
|
||||
showCard('system', 'systemconfig');
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user