From d667180281c0d0ff719344f4e152328cc2475920 Mon Sep 17 00:00:00 2001
From: Myriam Delaruelle <myriam.delaruelle@univ-lorraine.fr>
Date: Tue, 23 Jan 2024 11:47:33 +0100
Subject: [PATCH] =?UTF-8?q?affiche=20le=20tableau=20m=C3=AAme=20s'il=20n'y?=
 =?UTF-8?q?=20a=20pas=20d'=C3=A9tudiants?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 templates/suivi-table.mustache | 26 ++++++++++++++++++++++----
 1 file changed, 22 insertions(+), 4 deletions(-)

diff --git a/templates/suivi-table.mustache b/templates/suivi-table.mustache
index dad5276..1e9d691 100644
--- a/templates/suivi-table.mustache
+++ b/templates/suivi-table.mustache
@@ -1,4 +1,4 @@
-{{#count_results}}
+
 	
 	<div class="table-wrapper">
 		<table id="suivi">
@@ -50,15 +50,33 @@
 						</tr>
 					{{/visible}}
 				{{/students}}
+				{{^students}}
+				
+					<tr >
+							
+							<td colspan=4 class="row-header" style="text-align: center;font-style: oblique;">
+								Il n'y a aucun étudiant dans le cours
+								
+							</td>
+							{{#modules}}
+								{{#visible}}
+							
+									<td  class="pointer-help state-0"><span class="icon-progress"></span></td>
+									{{/visible}}
+							{{/modules}}
+								
+						</tr>
+
+				{{/students}}
 			</tbody>
 		</table>
 	</div>
 
 <p id="count-selected-students">0 résultat(s) sélectionnés sur {{count_results}}</p>
-{{/count_results}}
-{{^count_results}}
+
+<!--{{^count_results}}
 	<div class="alert alert-primary">Il n'y a pas de résultats correspondants aux filtres sélectionnés</div>
-{{/count_results}}
+{{/count_results}}-->
 {{#js}}
 require(['format_iena/suivi-table'], function(module) {
     module.registerSelectAll();
-- 
GitLab