Skip to content
Snippets Groups Projects
Commit eea4c502 authored by DELARUELLE Myriam's avatar DELARUELLE Myriam
Browse files

fix css and edit mode

parent fab5a7bb
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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));
}
}
......@@ -33,3 +33,4 @@ defined('MOODLE_INTERNAL') || die();
* @author vrignaud camille
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment