[Fix #1098] Custom TypesDePieceJustificativeField for Administrate

This commit is contained in:
Mathieu Magnin 2018-01-08 15:19:04 +01:00
parent 51b94e2f53
commit c7b3bb0733
5 changed files with 26 additions and 1 deletions

View file

@ -8,7 +8,7 @@ class ProcedureDashboard < Administrate::BaseDashboard
# which determines how the attribute is displayed
# on pages throughout the dashboard.
ATTRIBUTE_TYPES = {
types_de_piece_justificative: Field::HasMany,
types_de_piece_justificative: TypesDePieceJustificativeCollectionField,
types_de_champ: TypesDeChampCollectionField,
dossiers: Field::HasMany,
procedure_path: Field::HasOne,
@ -56,6 +56,7 @@ class ProcedureDashboard < Administrate::BaseDashboard
:hidden_at,
:archived_at,
:types_de_champ,
:types_de_piece_justificative,
:for_individual,
:individual_with_siret,
:auto_archive_on,