diff options
author | Simon Rettberg | 2018-04-12 20:35:22 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-04-12 20:35:22 +0200 |
commit | 0df8ff53f4c71ffc4b0fdf72a520adfe08fed513 (patch) | |
tree | 36ca1d50b0a2f34e93d681ce4c1f5cc2b1427d62 | |
parent | [locationinfo] Move save btn to the right (design guidelines) (diff) | |
download | slx-admin-0df8ff53f4c71ffc4b0fdf72a520adfe08fed513.tar.gz slx-admin-0df8ff53f4c71ffc4b0fdf72a520adfe08fed513.tar.xz slx-admin-0df8ff53f4c71ffc4b0fdf72a520adfe08fed513.zip |
[dozmod] Properly sort "last login" column in user list
-rw-r--r-- | modules-available/dozmod/pages/users.inc.php | 4 | ||||
-rw-r--r-- | modules-available/dozmod/templates/userlist.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules-available/dozmod/pages/users.inc.php b/modules-available/dozmod/pages/users.inc.php index 23457ca6..a81bcb8b 100644 --- a/modules-available/dozmod/pages/users.inc.php +++ b/modules-available/dozmod/pages/users.inc.php @@ -46,7 +46,7 @@ class SubPage $row['canlogin'] = self::checked($row['canlogin']); $row['issuperuser'] = self::checked($row['issuperuser']); $row['emailnotifications'] = self::checked($row['emailnotifications']); - $row['lastlogin'] = date('d.m.Y', $row['lastlogin']); + $row['lastlogin_s'] = date('d.m.Y', $row['lastlogin']); $rows[] = $row; } Render::addTemplate('userlist', array( @@ -122,4 +122,4 @@ class SubPage die($val); } -}
\ No newline at end of file +} diff --git a/modules-available/dozmod/templates/userlist.html b/modules-available/dozmod/templates/userlist.html index 3b919099..6b19907d 100644 --- a/modules-available/dozmod/templates/userlist.html +++ b/modules-available/dozmod/templates/userlist.html @@ -28,7 +28,7 @@ </{{nameTag}}> </td> <td class="text-left text-nowrap">{{orgname}}</td> - <td class="text-left text-nowrap">{{lastlogin}}</td> + <td class="text-left text-nowrap" data-sort-value="{{lastlogin}}">{{lastlogin_s}}</td> <td class="text-left text-nowrap"><a href="mailto:{{email}}">{{email}}</a></td> <td> <div class="checkbox"> |