diff --git a/amd/build/header.js b/amd/build/header.js index ef5d2533217da6850d40f69c25a07d62888904da..17658a04afce349d60e4fab87d585d34060ddc5e 100644 --- a/amd/build/header.js +++ b/amd/build/header.js @@ -29,7 +29,7 @@ define(['jquery', 'core/ajax', 'core/str'], registerHeader:function(){ $("#button-collapse").click(function(){ if($("#summary-wrapper").hasClass('collapsed')){ - $("#summary-wrapper").animate({ "max-height": '7rem' }, "slow" ); + $("#summary-wrapper").animate({ "max-height": '13rem' }, "slow" ); var message=str.get_string('displayInfos', 'format_iena'); $.when(message).done(function(localizedEditString) { $("#button-collapse").text(localizedEditString); diff --git a/classes/output/renderer.php b/classes/output/renderer.php index a8e8955ad5d529d5a24b3ad40d745471fa63f4c8..e02106a5c7a7a6118c3ea53ce5566780716b61e0 100644 --- a/classes/output/renderer.php +++ b/classes/output/renderer.php @@ -71,4 +71,30 @@ class renderer extends section_renderer { // If nothing works, let the parent class decide. return parent::render($widget); } + + //Permet d'ajouter l'édition rapide sur les sections + /** + * Generate the section title, wraps it in a link to the section page if page is to be displayed on a separate page + * + * @param stdClass $section The course_section entry from DB + * @param stdClass $course The course entry from DB + * @return string HTML to output. + */ + public function section_title($section, $course) { + return $this->render(course_get_format($course)->inplace_editable_render_section_name($section)); + } + + /** + * Generate the section title to be displayed on the section page, without a link + * + * @param stdClass $section The course_section entry from DB + * @param stdClass $course The course entry from DB + * @return string HTML to output. + */ + public function section_title_without_link($section, $course) { + return $this->render(course_get_format($course)->inplace_editable_render_section_name($section, false)); + } + + + } diff --git a/renderer.php b/renderer.php index 88ac995904c5df2f4580da09b8d527fd8ab284a2..8618de695a49a8cd6f0e2f67b683b8d62c6c7f09 100644 --- a/renderer.php +++ b/renderer.php @@ -33,3 +33,4 @@ defined('MOODLE_INTERNAL') || die(); * @author vrignaud camille * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ + diff --git a/styles.css b/styles.css index de0dfafb13d4e0004989a908b0a7ddc6267d306e..5a67f01476615f9507c9710f7a71e72c3f639ebe 100644 --- a/styles.css +++ b/styles.css @@ -355,6 +355,7 @@ ul.nav.navbar-nav.ml-auto { margin-bottom: 40px; background: #eaeaea; padding: 15px; + border-radius:10px; } @@ -646,7 +647,7 @@ ul.nav.navbar-nav.ml-auto { #summary-wrapper{ padding-left: 1px; display: block; - max-height: 7rem; + max-height: 13rem; height: auto; overflow: hidden; margin-bottom: 5px;