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:
Mathieu Magnin 2018-06-21 11:30:28 +02:00 committed by GitHub
commit c4f1b2658e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -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,

View file

@ -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