Add filters to log pages (#3815)
Credit to @gergo85. Thanks to @petehalverson for octodock to test this with
This commit is contained in:
parent
3ac740d2c3
commit
9522deff4e
|
|
@ -0,0 +1,16 @@
|
|||
# ===================================
|
||||
# Filter Scope Definitions
|
||||
# ===================================
|
||||
|
||||
scopes:
|
||||
|
||||
created_at:
|
||||
label: backend::lang.access_log.created_at
|
||||
type: daterange
|
||||
conditions: created_at >= ':after' AND created_at <= ':before'
|
||||
|
||||
user:
|
||||
label: backend::lang.access_log.login
|
||||
modelClass: Backend\Models\User
|
||||
conditions: user_id in (:filtered)
|
||||
nameFrom: login
|
||||
|
|
@ -12,4 +12,6 @@ showSetup: true
|
|||
toolbar:
|
||||
buttons: list_toolbar
|
||||
search:
|
||||
prompt: backend::lang.list.search_prompt
|
||||
prompt: backend::lang.list.search_prompt
|
||||
|
||||
filter: config_filter.yaml
|
||||
|
|
|
|||
|
|
@ -438,7 +438,9 @@ return [
|
|||
'hint' => 'This log displays a list of successful sign in attempts by administrators. Records are kept for a total of :days days.',
|
||||
'menu_label' => 'Access log',
|
||||
'menu_description' => 'View a list of successful back-end user sign ins.',
|
||||
'id' => 'ID',
|
||||
'created_at' => 'Date & Time',
|
||||
'type' => 'Type',
|
||||
'login' => 'Login',
|
||||
'ip_address' => 'IP address',
|
||||
'first_name' => 'First name',
|
||||
|
|
|
|||
|
|
@ -437,7 +437,9 @@ return [
|
|||
'hint' => 'Ez a napló a felhasználók sikeres bejelentkezési kísérleteit listázza ki. A bejegyzéseket :days napig őrzi meg a rendszer.',
|
||||
'menu_label' => 'Hozzáférés napló',
|
||||
'menu_description' => 'A felhasználók sikeres bejelentkezéseinek megtekintése.',
|
||||
'id' => 'ID',
|
||||
'created_at' => 'Időpont',
|
||||
'type' => 'Típus',
|
||||
'login' => 'Felhasználónév',
|
||||
'ip_address' => 'IP cím',
|
||||
'first_name' => 'Keresztnév',
|
||||
|
|
|
|||
|
|
@ -3,12 +3,27 @@
|
|||
# ===================================
|
||||
|
||||
columns:
|
||||
|
||||
id:
|
||||
label: backend::lang.access_log.id
|
||||
searchable: yes
|
||||
invisible: true
|
||||
width: 75px
|
||||
|
||||
created_at:
|
||||
label: backend::lang.access_log.created_at
|
||||
searchable: yes
|
||||
type: timetense
|
||||
width: 160px
|
||||
|
||||
type:
|
||||
label: backend::lang.access_log.type
|
||||
invisible: true
|
||||
|
||||
ip_address:
|
||||
label: backend::lang.access_log.ip_address
|
||||
searchable: yes
|
||||
|
||||
login:
|
||||
label: backend::lang.access_log.login
|
||||
relation: user
|
||||
|
|
@ -16,10 +31,6 @@ columns:
|
|||
searchable: yes
|
||||
sortable: false
|
||||
|
||||
ip_address:
|
||||
label: backend::lang.access_log.ip_address
|
||||
searchable: yes
|
||||
|
||||
first_name:
|
||||
label: backend::lang.access_log.first_name
|
||||
relation: user
|
||||
|
|
@ -39,4 +50,4 @@ columns:
|
|||
relation: user
|
||||
select: email
|
||||
searchable: yes
|
||||
sortable: false
|
||||
sortable: false
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
# ===================================
|
||||
# Filter Scope Definitions
|
||||
# ===================================
|
||||
|
||||
scopes:
|
||||
|
||||
created_at:
|
||||
label: backend::lang.access_log.created_at
|
||||
type: daterange
|
||||
conditions: created_at >= ':after' AND created_at <= ':before'
|
||||
|
||||
user:
|
||||
label: backend::lang.access_log.login
|
||||
modelClass: Backend\Models\User
|
||||
conditions: user_id in (:filtered)
|
||||
nameFrom: login
|
||||
|
|
@ -18,3 +18,5 @@ toolbar:
|
|||
buttons: list_toolbar
|
||||
search:
|
||||
prompt: backend::lang.list.search_prompt
|
||||
|
||||
filter: config_filter.yaml
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
# ===================================
|
||||
# Filter Scope Definitions
|
||||
# ===================================
|
||||
|
||||
scopes:
|
||||
|
||||
created_at:
|
||||
label: backend::lang.access_log.created_at
|
||||
type: daterange
|
||||
conditions: created_at >= ':after' AND created_at <= ':before'
|
||||
|
|
@ -14,4 +14,6 @@ showCheckboxes: true
|
|||
toolbar:
|
||||
buttons: list_toolbar
|
||||
search:
|
||||
prompt: backend::lang.list.search_prompt
|
||||
prompt: backend::lang.list.search_prompt
|
||||
|
||||
filter: config_filter.yaml
|
||||
|
|
|
|||
Loading…
Reference in New Issue