'1'));
$readonly = false;
if($mandatoryDashboard){
$readonly = !$myUser->can('dashboard','configure');
$dashboards = array($mandatoryDashboard);
}else{
$dashboards = Dashboard::loadAll(array('user'=>$myUser->login));
} ?>
connected()): ?>
- DASH
user = $myUser->login;
$defaultDash->label = 'Général';
$defaultDash->icon = 'far fa-bookmark';
$defaultDash->default = true;
$defaultDash->save();
$dashboards[] = $defaultDash;
foreach(array('profile','clock','log') as $i=>$widget){
$item = new DashboardWidget();
$item->model = $widget;
$item->position = $i;
$item->dashboard = $defaultDash->id;
$item->save();
}
}
foreach($dashboards as $dashboard): ?>
- default?'data-selected="1"':''; ?> data-id="id; ?>" title="label; ?>">label; ?>