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:
commit
555cd74232
1 changed files with 5 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue