7089 Commits

Author SHA1 Message Date
Mikel Martín
1b8ec78421 MDL-81766 mod_subsection: Display subsection content in activity card
- Replace the standard activity card display with the delegated section
  rendering.
- Add and fix related SCSS styles.
2024-07-23 16:33:00 +02:00
Mikel Martín
195812b34b MDL-81766 courseformat: Add delegatedsection renderable
Create a new 'delegatedsection' renderable extending the 'section' one
with its own template.
2024-07-23 16:32:59 +02:00
ferranrecio
a908c0f8af MDL-81766 core_course: fix modchooser section number 2024-07-23 16:32:59 +02:00
Mikel Martín
eb4c43b387 MDL-81766 courseformat: Fix section page actionmmenu update 2024-07-23 16:32:59 +02:00
Mikel Martín
2a01a188a1 MDL-81766 courseformat: Fix hide addsection in delegated sections
Delegated sections should not render the add new section button at
the bottom of them.
2024-07-22 13:34:45 +02:00
Mikel Martín
c51989d649 MDL-81766 courseformat: Fix bulk actions for delegated sections
Disable bulk editing for delegated sections and fix some styles related to it.
2024-07-22 13:34:45 +02:00
Mikel Martín
b18db24552 MDL-81766 courseformat: Fix delegated section headers display
Section specific page was not prepared to display another sections in
it. Fixed some of its logic to handle other section's headers inside.
2024-07-22 13:34:45 +02:00
Mikel Martín
d77b20b65f MDL-81766 courseformat: Fix last activity dropzone
When using drag and drop with activities and subsection combination, the dropzone
of the last element was incorrectly calculated. Fixed the 'getLastCm()' function.
2024-07-22 13:34:45 +02:00
Mikel Martín
572d45c885 MDL-81766 course: Fix activity name inplace editor selector
Fix name inplace editor for course modules by updating the selector
to a more specific one.
2024-07-22 13:34:45 +02:00
Laurent David
4fe100f161 MDL-73232 core_courseformat: Inform user when reaching section max
* Disable the Add new Section button when max has been reached
* It also grays out the (+) button between sections and display a tooltip
* When adding a new section via the (+) button between section
should add a section with the (+) (add) button disabled.
2024-07-22 07:58:54 +02:00
Paul Holden
26c42bf02d
MDL-58287 courseformat: ensure all format plugins are returned. 2024-07-19 15:21:19 +01:00
Paul Holden
c99c9c1b5a
MDL-82528 courseformat: switch to existing group action icon.
Use a version that already exists in our fontawesome mapping so it
can be consistently styled/overridden.
2024-07-19 12:54:13 +01:00
Paul Holden
c10610d035
MDL-82466 completion: format time duration in report entity columns.
Where the previous output was simple count of days, switch to using
the new format helper to return a time duration.

AMOS BEGIN
 CPY [daystakingcourse,core_course],[daystakingcourse,core_completion]
AMOS END
2024-07-19 10:34:00 +01:00
Amaia Anabitarte
ff6edc2e9f MDL-82510 course: Add new delegated action menu 2024-07-19 08:27:10 +02:00
Ilya Tregubov
fdfdd02639 NOBUG: Add upgrade notes 2024-07-19 09:30:19 +08:00
Huong Nguyen
388fb71f51
Merge branch 'MDL-81699-main' of https://github.com/durenadev/moodle 2024-07-18 09:57:18 +07:00
Huong Nguyen
f4b332a67e
Merge branch 'MDL-82467' of https://github.com/paulholden/moodle 2024-07-18 09:19:33 +07:00
Sara Arjona
a7383405a8
Merge branch 'MDL-81683-main' of https://github.com/laurentdavid/moodle 2024-07-17 17:03:17 +02:00
Laurent David
45c157d0f9 MDL-81683 core_courseformat: Adjust Move Activity Modal style
* Use the same style as the course index for the tree/list items
* Fix indentation
2024-07-17 09:32:05 +02:00
Laurent David
7f7d4a97d8 MDL-81683 core_courseformat: Add subsection to the move activity modal
* Add subsection in the tree hierarchy
* Split the mustache templates to avoid repetitive code
2024-07-17 09:32:05 +02:00
Huong Nguyen
7c6fcaaff5
Merge branch 'MDL-80744-main-1' of https://github.com/ilyatregubov/moodle 2024-07-16 09:15:57 +07:00
Paul Holden
e60876ecef
MDL-82467 completion: simplify field SQL for completion columns.
For columns whose values can be represented purely in SQL, we don't
need to/shouldn't select extra data because it confuses the column
output during aggregation for numeric/boolean columns.
2024-07-15 13:19:25 +01:00
Ilya Tregubov
0e8c086653 MDL-80744 core_course: user selector renderer for actionbar in course 2024-07-15 16:36:43 +08:00
Laurent David
c115b6d699 MDL-82319 core_courseformat: Remove redundant lock icon in section 2024-07-15 06:32:44 +02:00
Daniel Ureña
5089744789 MDL-81699 Course: core_course_get_courses_by_field add param sectionid 2024-07-12 11:29:26 +02:00
ferranrecio
5617445d42 MDL-81888 tool_generator: add cleanup scenario tag
The tool_generator creates a testing scenario that can
execute all steps from behat_data_generators (with some
limitations) and admin settings. With the patch the scenario file can
incorporate a cleanup steps to be executed when the manual test is done.
2024-07-12 10:32:54 +02:00
Huong Nguyen
2845d8cbde
Merge branch 'MDL-79717' of https://github.com/paulholden/moodle 2024-07-11 09:34:52 +07:00
Sara Arjona
c7a07f2bab
Merge branch 'MDL-82391' of https://github.com/paulholden/moodle 2024-07-10 18:05:46 +02:00
Paul Holden
bd0f8a058f
MDL-79717 phpunit: ensure unique data provider keys in tests.
Duplicate data provider keys were overwriting and/or duplicating
one another, leading to some cases being skipped.

Other "duplicate array key" errors were picked up by `phpcs` in
this dragnet across all tests, which have also been fixed.
2024-07-10 14:08:49 +01:00
Huong Nguyen
5f37f860e2
Merge branch 'MDL-81798-main' of https://github.com/ferranrecio/moodle 2024-07-10 09:56:48 +07:00
Huong Nguyen
6d3ee65ce2
Merge branch 'MDL-82324-main' of https://github.com/ferranrecio/moodle 2024-07-10 09:47:28 +07:00
Sara Arjona
2b3ff1633f Merge branch 'MDL-82360' of https://github.com/paulholden/moodle 2024-07-10 09:17:59 +08:00
Sara Arjona
41b8cd3f73 Merge branch 'MDL-78388' of https://github.com/djarran/moodle 2024-07-10 09:16:57 +08:00
Paul Holden
1554c68933
MDL-82391 courseformat: correct selector element section URLs.
It's required by themes that don't use the course index component,
e.g. Classic theme.
2024-07-09 14:45:16 +01:00
ferranrecio
5ca968fea4 MDL-82324 course: fix empty section dropzone 2024-07-09 11:23:46 +02:00
ferranrecio
0766976b61 MDL-81798 course: limit number of subsections 2024-07-09 10:49:42 +02:00
ferranrecio
0ccafe76f6 MDL-81765 mod_subsection: disable mod subsection by default 2024-07-08 13:34:28 +02:00
ferranrecio
c7742b7a23 MDL-81765 course: fix double highlighted in subsections 2024-07-05 13:04:49 +02:00
ferranrecio
c13d579b5e MDL-81765 course: module delegated section logic
Having mod_subsection into core was a pre-requisite to incorporate some
phpunit and behat tests that are pending from previous issues. Also,
some new sectiondelegatemodule methods are added tu support the new
plugin.
2024-07-05 08:29:21 +02:00
Ilya Tregubov
d6d6f8466c Merge branch 'MDL-82024' of https://github.com/paulholden/moodle 2024-07-04 09:50:22 +08:00
Sara Arjona
89dcf5066b
Merge branch 'MDL-74251-main' of https://github.com/lucaboesch/moodle 2024-07-03 09:35:56 +02:00
Shamim Rezaie
1511c71a18 Merge branch 'MDL-81725-main' of https://github.com/laurentdavid/moodle 2024-07-03 13:45:45 +10:00
djarrancotleanu
38a6f3fcaf MDL-78388 course: Copy permissions when duplicating module 2024-07-03 13:39:00 +10:00
Shamim Rezaie
b174c16d4d Merge branch 'MDL-82329' of https://github.com/paulholden/moodle 2024-07-03 04:06:19 +10:00
Paul Holden
314fcb3cf8
MDL-82360 courseformat: remove console upload error string debugging. 2024-07-02 15:53:19 +01:00
Laurent David
39ccad14d1 MDL-81725 core_courseformat: Fix refreshCompletion on subsections
* If completion information on subsection is not present the
refreshCompletion action is raising an exception
2024-07-02 16:17:19 +02:00
Laurent David
e8c66a9815 MDL-81725 core_courseformat: Prevent drag and drop handling subsections
* Subsection are "modules" and should not be handled as "sections" in the
drag and drop process. Preventing delegated section from being dragged in
the dndsectionitems module fixes the drag and drop issues with subsections
in course index.
2024-07-02 16:17:19 +02:00
Laurent David
cdc3ec5a54 MDL-81725 core_courseformat: Display subsections in the course index
* Add subsection into section entry in course index
* Adjust padding
2024-07-02 11:58:45 +02:00
Sara Arjona
4fcea1f716
Merge branch 'MDL-80191-main-v06' of https://github.com/ferranrecio/moodle 2024-07-01 12:26:46 +02:00
Sara Arjona
576e63cb0f
Merge branch 'MDL-63753' of https://github.com/larsbonczek/moodle 2024-07-01 12:18:50 +02:00