From 010caca566ef7ce3052bf1c985b21ac3eda2e559 Mon Sep 17 00:00:00 2001
From: Myriam Delaruelle
 <Myriam Delaruelle@bdn-un-mdelarue.ad.univ-lorraine.fr>
Date: Thu, 3 Mar 2022 09:59:20 +0100
Subject: [PATCH] fixes filter and css

---
 lang/en/format_iena.php     | 4 ++--
 lang/fr/format_iena.php     | 4 ++--
 templates/sections.mustache | 4 ++--
 view/view_suivi_unit3.php   | 1 -
 4 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/lang/en/format_iena.php b/lang/en/format_iena.php
index f75ea72..8eb7305 100644
--- a/lang/en/format_iena.php
+++ b/lang/en/format_iena.php
@@ -46,8 +46,8 @@ By definition an unnamed section is displayed as <strong>section [N]</strong>.';
 	$string['modalite'] = 'Modality';
 	$string['notif'] = 'Notification';
 	$string['notif_summary'] = 'A notification can be sent to the student by email. She will remind her to consult the section and will contain various information (name of the course, link to the course, name of the section, date the section and modality';
-	$string['in_presence'] = 'In the presence';
-	$string['not_presence'] = 'Remote';
+	$string['in_presence'] = 'Face-to-face session';
+	$string['not_presence'] = 'Remote session';
 	$string['days_before'] = 'A number of days before the session';
 	$string['days_after'] = 'A number of days after the session';
 	$string['days_same'] = 'The same day';
diff --git a/lang/fr/format_iena.php b/lang/fr/format_iena.php
index 8e74c4a..3899595 100644
--- a/lang/fr/format_iena.php
+++ b/lang/fr/format_iena.php
@@ -46,8 +46,8 @@ By definition an unnamed section is displayed as <strong>section [N]</strong>.';
 	$string['modalite'] = 'Modalité';
 	$string['notif'] = 'Notification';
 	$string['notif_summary'] = 'Une notification peut être envoyée à l étudiant par mail. Elle lui rapplera de consulter la section et contiendra diverses informations (nom du cours, lien vers le cours, nom de la section, date le la section et modalité';
-	$string['in_presence'] = 'En présence';
-	$string['not_presence'] = 'À distance';
+	$string['in_presence'] = 'Session en présence';
+	$string['not_presence'] = 'Session à distance';
 	$string['days_before'] = 'Un certain nombre de jours avant la séance';
 	$string['days_after'] = 'Un certain nombre de jours après la séance';
 	$string['days_same'] = 'Le jour même';
diff --git a/templates/sections.mustache b/templates/sections.mustache
index 51fa149..3c5c342 100644
--- a/templates/sections.mustache
+++ b/templates/sections.mustache
@@ -1,10 +1,10 @@
 
 <ul class="iena-editing">
 	<div class="iena-course-header"></div>
-	<!--<div class="iena-caption-sections">
+	<div class="iena-caption-sections">
 		<div class="iena-caption-icons"><span class="iena-icon-presence"></span>{{#str}} in_presence, format_iena {{/str}}</div>
 	 <div class="iena-caption-icons"><span class="iena-icon-distance"></span>{{#str}} not_presence, format_iena {{/str}}</div>
-	</div>-->
+	</div>
 	{{#sections}}
 		{{> format_iena/section}}
 	{{/sections}}
diff --git a/view/view_suivi_unit3.php b/view/view_suivi_unit3.php
index 830b84a..cfbb793 100644
--- a/view/view_suivi_unit3.php
+++ b/view/view_suivi_unit3.php
@@ -323,7 +323,6 @@ if (isset($_GET['filter'])) {
 				">25" => "&gt;=25%",
 				">0" => "&gt;0%",
 			];
-			var_dump($filter);
 			foreach ($filters as $value => $name) {
 				if ( $value == $filter ) {
 					echo "<option selected='selected' value='$value'>$name</option>";
-- 
GitLab