Merge pull request #2133 from betagouv/add-gestionnaires-to-procedures-manager
Affiche les accompagnants d'une démarche dans le Manager (et vice-versa)
This commit is contained in:
commit
c4f1b2658e
2 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,7 @@ class GestionnaireDashboard < Administrate::BaseDashboard
|
|||
updated_at: Field::DateTime,
|
||||
current_sign_in_at: Field::DateTime,
|
||||
dossiers: Field::HasMany,
|
||||
procedures: Field::HasMany
|
||||
}.freeze
|
||||
|
||||
# COLLECTION_ATTRIBUTES
|
||||
|
@ -29,6 +30,7 @@ class GestionnaireDashboard < Administrate::BaseDashboard
|
|||
# SHOW_PAGE_ATTRIBUTES
|
||||
# an array of attributes that will be displayed on the model's show page.
|
||||
SHOW_PAGE_ATTRIBUTES = [
|
||||
:procedures,
|
||||
:dossiers,
|
||||
:id,
|
||||
:email,
|
||||
|
|
|
@ -12,6 +12,7 @@ class ProcedureDashboard < Administrate::BaseDashboard
|
|||
types_de_champ: TypesDeChampCollectionField,
|
||||
path: ProcedureLinkField,
|
||||
dossiers: Field::HasMany,
|
||||
gestionnaires: Field::HasMany,
|
||||
administrateur: Field::BelongsTo,
|
||||
id: Field::Number,
|
||||
libelle: Field::String,
|
||||
|
@ -64,6 +65,7 @@ class ProcedureDashboard < Administrate::BaseDashboard
|
|||
:for_individual,
|
||||
:individual_with_siret,
|
||||
:auto_archive_on,
|
||||
:gestionnaires
|
||||
].freeze
|
||||
|
||||
# FORM_ATTRIBUTES
|
||||
|
|
Loading…
Reference in a new issue