From 91602ee1c1c1c3121be40c6f07e4e56b48318ba9 Mon Sep 17 00:00:00 2001 From: seb-by-ouidou Date: Sun, 8 Oct 2023 14:20:07 +0000 Subject: [PATCH] feat: US1.10 administrateur in manager --- app/dashboards/administrateur_dashboard.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/dashboards/administrateur_dashboard.rb b/app/dashboards/administrateur_dashboard.rb index 55a0660fc..f4dc0c60f 100644 --- a/app/dashboards/administrateur_dashboard.rb +++ b/app/dashboards/administrateur_dashboard.rb @@ -13,6 +13,7 @@ class AdministrateurDashboard < Administrate::BaseDashboard created_at: Field::DateTime, updated_at: Field::DateTime, procedures: Field::HasMany.with_options(limit: 20), + groupe_gestionnaire: Field::BelongsTo, registration_state: Field::String.with_options(searchable: false), features: FeaturesField, email: Field::Email.with_options(searchable: false) @@ -28,6 +29,7 @@ class AdministrateurDashboard < Administrate::BaseDashboard :user, :created_at, :procedures, + :groupe_gestionnaire, :registration_state ].freeze @@ -40,7 +42,8 @@ class AdministrateurDashboard < Administrate::BaseDashboard :updated_at, :registration_state, :features, - :procedures + :procedures, + :groupe_gestionnaire ].freeze # FORM_ATTRIBUTES