Add some attributes in Administrateur dashboard
This commit is contained in:
parent
98ae1bb95f
commit
ae1498d786
1 changed files with 5 additions and 0 deletions
|
@ -13,6 +13,8 @@ class AdministrateurDashboard < Administrate::BaseDashboard
|
||||||
created_at: Field::DateTime,
|
created_at: Field::DateTime,
|
||||||
updated_at: Field::DateTime,
|
updated_at: Field::DateTime,
|
||||||
procedures: Field::HasMany.with_options(limit: 20),
|
procedures: Field::HasMany.with_options(limit: 20),
|
||||||
|
registration_state: Field::String.with_options(searchable: false),
|
||||||
|
current_sign_in_at: Field::DateTime,
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
||||||
# COLLECTION_ATTRIBUTES
|
# COLLECTION_ATTRIBUTES
|
||||||
|
@ -24,6 +26,7 @@ class AdministrateurDashboard < Administrate::BaseDashboard
|
||||||
:email,
|
:email,
|
||||||
:created_at,
|
:created_at,
|
||||||
:procedures,
|
:procedures,
|
||||||
|
:registration_state,
|
||||||
].freeze
|
].freeze
|
||||||
|
|
||||||
# SHOW_PAGE_ATTRIBUTES
|
# SHOW_PAGE_ATTRIBUTES
|
||||||
|
@ -33,6 +36,8 @@ class AdministrateurDashboard < Administrate::BaseDashboard
|
||||||
:email,
|
:email,
|
||||||
:created_at,
|
:created_at,
|
||||||
:updated_at,
|
:updated_at,
|
||||||
|
:registration_state,
|
||||||
|
:current_sign_in_at,
|
||||||
:procedures,
|
:procedures,
|
||||||
].freeze
|
].freeze
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue