Improve the Administrators list

This commit is contained in:
Szabó Gergő 2016-07-27 11:50:44 +02:00
parent 83a541f819
commit c37f078e29
4 changed files with 56 additions and 2 deletions

View File

@ -0,0 +1,30 @@
# ===================================
# Filter Scope Definitions
# ===================================
scopes:
is_activated:
label: backend::lang.user.activated
type: checkbox
conditions: is_activated = 1
is_superuser:
label: backend::lang.user.superuser
type: checkbox
conditions: is_superuser = 1
login_date:
label: backend::lang.user.last_login
type: daterange
conditions: last_login >= ':after' AND last_login <= ':before'
created_date:
label: backend::lang.user.created_at
type: daterange
conditions: created_at >= ':after' AND created_at <= ':before'
updated_date:
label: backend::lang.user.updated_at
type: daterange
conditions: updated_at >= ':after' AND updated_at <= ':before'

View File

@ -14,4 +14,6 @@ showSetup: true
toolbar: toolbar:
buttons: list_toolbar buttons: list_toolbar
search: search:
prompt: backend::lang.list.search_prompt prompt: backend::lang.list.search_prompt
filter: config_filter.yaml

View File

@ -128,6 +128,10 @@ return [
'allow' => 'Allow', 'allow' => 'Allow',
'inherit' => 'Inherit', 'inherit' => 'Inherit',
'deny' => 'Deny', 'deny' => 'Deny',
'activated' => 'Activated',
'last_login' => 'Last login',
'created_at' => 'Created at',
'updated_at' => 'Updated at',
'group' => [ 'group' => [
'name' => 'Group', 'name' => 'Group',
'name_comment' => 'The name is displayed in the group list on the Create/Edit Administrator form.', 'name_comment' => 'The name is displayed in the group list on the Create/Edit Administrator form.',

View File

@ -3,6 +3,7 @@
# =================================== # ===================================
columns: columns:
first_name: first_name:
label: backend::lang.user.first_name label: backend::lang.user.first_name
searchable: true searchable: true
@ -32,4 +33,21 @@ columns:
label: backend::lang.user.groups label: backend::lang.user.groups
relation: groups relation: groups
select: name select: name
sortable: false sortable: false
last_login:
label: backend::lang.user.last_login
searchable: true
type: datetime
created_at:
label: backend::lang.user.created_at
searchable: true
invisible: true
type: datetime
updated_at:
label: backend::lang.user.updated_at
searchable: true
invisible: true
type: datetime