forked from ZwiiCMS-Team/ZwiiCampus
Améliore la table profil
This commit is contained in:
parent
45abb7fccc
commit
d14eb9f6a8
@ -1232,9 +1232,9 @@ class user extends common
|
|||||||
$item['nom'],
|
$item['nom'],
|
||||||
$item['prenom'],
|
$item['prenom'],
|
||||||
self::$groups[$item['groupe']],
|
self::$groups[$item['groupe']],
|
||||||
($this->getData(['profil', $item['groupe'], $item['profil'], 'name']) !== null )
|
empty($this->getData(['profil', $this->getData(['user', $userId, 'group']), $this->getData(['user', $userId, 'profil']), 'name']))
|
||||||
? $this->getData(['profil', $item['groupe'], $item['profil'], 'name'])
|
? helper::translate(self::$groups[(int) $this->getData(['user', $userId, 'group'])])
|
||||||
: $item['profil'],
|
: $this->getData(['profil', $this->getData(['user', $userId, 'group']), $this->getData(['user', $userId, 'profil']), 'name']),
|
||||||
$item['prenom'],
|
$item['prenom'],
|
||||||
helper::filter($item['email'], helper::FILTER_MAIL),
|
helper::filter($item['email'], helper::FILTER_MAIL),
|
||||||
$item['tags'],
|
$item['tags'],
|
||||||
@ -1296,9 +1296,9 @@ class user extends common
|
|||||||
$item['nom'],
|
$item['nom'],
|
||||||
$item['prenom'],
|
$item['prenom'],
|
||||||
self::$groups[$item['groupe']],
|
self::$groups[$item['groupe']],
|
||||||
($this->getData(['profil', $item['groupe'], $item['profil'], 'name']) !== null )
|
empty($this->getData(['profil', $this->getData(['user', $userId, 'group']), $this->getData(['user', $userId, 'profil']), 'name']))
|
||||||
? $this->getData(['profil', $item['groupe'], $item['profil'], 'name'])
|
? helper::translate(self::$groups[(int) $this->getData(['user', $userId, 'group'])])
|
||||||
: $item['profil'],
|
: $this->getData(['profil', $this->getData(['user', $userId, 'group']), $this->getData(['user', $userId, 'profil']), 'name']),
|
||||||
$item['prenom'],
|
$item['prenom'],
|
||||||
$item['email'],
|
$item['email'],
|
||||||
$item['tags'],
|
$item['tags'],
|
||||||
|
@ -25,7 +25,8 @@ $(document).ready((function () {
|
|||||||
|
|
||||||
$('#dataTables').DataTable({
|
$('#dataTables').DataTable({
|
||||||
language: {
|
language: {
|
||||||
url: "core/vendor/datatables/french.json"
|
url: "core/vendor/datatables/french.json",
|
||||||
|
"paging": false
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}));
|
}));
|
Loading…
Reference in New Issue
Block a user