Merge pull request #4594 from tchak/fix-admin-creation

Corrige la création d'un administrateur dans l'interface manager
This commit is contained in:
LeSim 2019-12-02 10:15:08 +01:00 committed by GitHub
commit 555cd74232
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,8 @@ class AdministrateurDashboard < Administrate::BaseDashboard
procedures: Field::HasMany.with_options(limit: 20),
registration_state: Field::String.with_options(searchable: false),
current_sign_in_at: Field::DateTime,
features: FeaturesField
features: FeaturesField,
email: Field::Email
}.freeze
# COLLECTION_ATTRIBUTES
@ -46,7 +47,9 @@ class AdministrateurDashboard < Administrate::BaseDashboard
# FORM_ATTRIBUTES
# an array of attributes that will be displayed
# on the model's form (`new` and `edit`) pages.
FORM_ATTRIBUTES = [].freeze
FORM_ATTRIBUTES = [
:email
].freeze
# Overwrite this method to customize how procedures are displayed
# across all pages of the admin dashboard.