diff --git a/lib.php b/lib.php index ad4fcd6b23e4432104f2d877cc0bf2b2e9fe3a0a..64a7111a7717f3174a2a1deeb2c1b4d1f8f76ed2 100644 --- a/lib.php +++ b/lib.php @@ -131,7 +131,6 @@ class format_iena extends format_topics { global $PAGE; $elements = parent::create_edit_form_elements($mform, $forsection); - if ($forsection) { $mform->removeElement('presence', false); $mform->removeElement('daterendu', false); @@ -258,13 +257,13 @@ class format_iena extends format_topics { */ public function update_section_format_options($data) { global $DB; - + $objectsection = new stdClass(); $objectsection->id = $data["id"]; $sectionconfig = $this->get_format_options($objectsection); // If a date was set but we want to remove it. - if (!isset($data['daterenducheck']) && !isset($data['daterenducheck2'])) { + if ((!isset($data['daterenducheck']) && !isset($data['daterenducheck2'])) && (isset($data['daterendu']))) { if (array_key_exists('daterendu', $sectionconfig) && !empty($sectionconfig['daterendu'])) { $data['daterendu'] = null; } else { diff --git a/styles.css b/styles.css index 5d146f5b9f82d16025a69d30c40f7ae33e6d5e95..bd7c624ae00fd408d8e25e89292df9eb39cca641 100644 --- a/styles.css +++ b/styles.css @@ -1,4 +1,4 @@ - +/*style 4*/ /* injecter ça dans le renderer au lieu de le faire ici afin que ça n'impacte pas le reste de la plateforme */ @@ -956,6 +956,7 @@ tbody th{ font-family: FontAwesome; width: 100%; display: inline-block;text-align: center; color: white; font-size: large; + font-weight: 900; } .iena-icon-distance::after{ @@ -963,6 +964,8 @@ tbody th{ font-family: FontAwesome; width: 100%; display: inline-block;text-align: center; color: white; font-size: large; + font-weight: 950; + } .iena-caption-sections > .iena-caption-icons, .iena-caption-sections > .iena-caption-icons > * {