1304 datatables non chargée par défaut

This commit is contained in:
Fred Tempez 2023-12-09 17:58:14 +01:00
parent 103991b2be
commit e5d9936641
3 changed files with 25 additions and 7 deletions

View File

@ -50,7 +50,7 @@ class common
const ACCESS_TIMER = 1800;
// Numéro de version
const ZWII_VERSION = '1.3.03';
const ZWII_VERSION = '1.3.04';
// URL autoupdate
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/';
@ -139,7 +139,7 @@ class common
'zwiico',
//'imagemap',
'simplelightbox',
'datatables'
//'datatables', désactivé par défaut
],
'view' => ''
];

View File

@ -119,7 +119,10 @@ class course extends common
// Valeurs en sortie
$this->addOutput([
'title' => helper::translate('Espaces disponibles'),
'view' => 'index'
'view' => 'index',
'vendor' => [
'datatables'
]
]);
}
@ -569,6 +572,9 @@ class course extends common
$this->addOutput([
'title' => sprintf(helper::translate('Participants %s'), $this->getData(['course', $courseId, 'title'])),
'view' => 'users',
'vendor' => [
'datatables'
]
]);
}
@ -691,7 +697,10 @@ class course extends common
// Valeurs en sortie
$this->addOutput([
'title' => helper::translate('Inscription en masse'),
'view' => 'usersAdd'
'view' => 'usersAdd',
'vendor' => [
'datatables'
]
]);
}
@ -838,7 +847,10 @@ class course extends common
// Valeurs en sortie
$this->addOutput([
'title' => helper::translate('Désincription en masse'),
'view' => 'usersDelete'
'view' => 'usersDelete',
'vendor' => [
'datatables'
]
]);
}
@ -989,7 +1001,10 @@ class course extends common
// Valeurs en sortie
$this->addOutput([
'title' => helper::translate('Historique ') . $this->getData(['user', $userId, 'firstname']) . ' ' . $this->getData(['user', $userId, 'lastname']),
'view' => 'userHistory'
'view' => 'userHistory',
'vendor' => [
'datatables'
]
]);
}

View File

@ -552,7 +552,10 @@ class user extends common
// Valeurs en sortie
$this->addOutput([
'title' => helper::translate('Utilisateurs'),
'view' => 'index'
'view' => 'index',
'vendor' => [
'datatables'
]
]);
}