diff --git a/app/views/new_administrateur/groupe_instructeurs/index.html.haml b/app/views/new_administrateur/groupe_instructeurs/index.html.haml index 6f9661a11..c7882b258 100644 --- a/app/views/new_administrateur/groupe_instructeurs/index.html.haml +++ b/app/views/new_administrateur/groupe_instructeurs/index.html.haml @@ -28,7 +28,7 @@ %table.table.mt-2 %thead %tr - %th{ colspan: 2 } Liste des groupes + %th{ colspan: 2 }= t(".existing_groupe", count: @groupes_instructeurs.count) %tbody - @groupes_instructeurs.each do |group| %tr diff --git a/app/views/new_administrateur/groupe_instructeurs/show.html.haml b/app/views/new_administrateur/groupe_instructeurs/show.html.haml index 76bf71f6f..c73e2af53 100644 --- a/app/views/new_administrateur/groupe_instructeurs/show.html.haml +++ b/app/views/new_administrateur/groupe_instructeurs/show.html.haml @@ -33,7 +33,7 @@ %table.table.mt-2 %thead %tr - %th{ colspan: 2 } Instructeurs affectés + %th{ colspan: 2 }= t('.assigned_instructeur', count: @instructeurs.count) %tbody - @instructeurs.each do |instructeur| %tr diff --git a/config/locales/views/new_administrateur/groupe_instructeurs/fr.yml b/config/locales/views/new_administrateur/groupe_instructeurs/fr.yml index 98b9c6c34..4e0ace44d 100644 --- a/config/locales/views/new_administrateur/groupe_instructeurs/fr.yml +++ b/config/locales/views/new_administrateur/groupe_instructeurs/fr.yml @@ -1,6 +1,14 @@ fr: new_administrateur: groupe_instructeurs: + index: + existing_groupe: + one: "%{count} groupe existe" + other: "%{count} groupes existent" + show: + assigned_instructeur: + one: "%{count} instructeur est affecté" + other: "%{count} instructeurs sont affectés" add_instructeur: wrong_address: one: "%{value} n'est pas une adresse email valide"