Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iena-course-format
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iena
iena-course-format
Commits
eea4c502
Commit
eea4c502
authored
2 years ago
by
DELARUELLE Myriam
Browse files
Options
Downloads
Patches
Plain Diff
fix css and edit mode
parent
fab5a7bb
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
amd/build/header.js
+1
-1
1 addition, 1 deletion
amd/build/header.js
classes/output/renderer.php
+26
-0
26 additions, 0 deletions
classes/output/renderer.php
renderer.php
+1
-0
1 addition, 0 deletions
renderer.php
styles.css
+2
-1
2 additions, 1 deletion
styles.css
with
30 additions
and
2 deletions
amd/build/header.js
+
1
−
1
View file @
eea4c502
...
...
@@ -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
"
:
'
7
rem
'
},
"
slow
"
);
$
(
"
#summary-wrapper
"
).
animate
({
"
max-height
"
:
'
13
rem
'
},
"
slow
"
);
var
message
=
str
.
get_string
(
'
displayInfos
'
,
'
format_iena
'
);
$
.
when
(
message
).
done
(
function
(
localizedEditString
)
{
$
(
"
#button-collapse
"
).
text
(
localizedEditString
);
...
...
This diff is collapsed.
Click to expand it.
classes/output/renderer.php
+
26
−
0
View file @
eea4c502
...
...
@@ -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
));
}
}
This diff is collapsed.
Click to expand it.
renderer.php
+
1
−
0
View file @
eea4c502
...
...
@@ -33,3 +33,4 @@ defined('MOODLE_INTERNAL') || die();
* @author vrignaud camille
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
This diff is collapsed.
Click to expand it.
styles.css
+
2
−
1
View file @
eea4c502
...
...
@@ -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
:
7
rem
;
max-height
:
13
rem
;
height
:
auto
;
overflow
:
hidden
;
margin-bottom
:
5px
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment