7089 Commits

Author SHA1 Message Date
Jake Dallimore
c648839070 MDL-80746 core_course: fix group_selector rendering
This change:
- Fixes the group_selector constructor, removing the unnecessarily
deprecated param (this code is main-only, so no need to deprecate) and
fixes all calling code.
- moves the button and content into separate named_templatable
renderables, cleaning up the group_selector code so that it only needs
to make a single call to render and doesn't concern itself with contexts
of other renderables.
2024-09-25 12:47:07 +08:00
Jake Dallimore
8d1cdf6f8e MDL-80746 core_course: fix initial_selector rendering
This change:
- Fixes naming of initials_selector class (making plural to match its
predecessor), and addresses relevant calling code.
- Adds an initials_dropdown_form renderable, templatable
- Removes superfluous course/classes/output/actionbar renderer
- Replaces the rendering logic inside initial_selector with calls to
render the new renderable
- Simplifies the initials_selector class, using instance vars instead of
passing args to helpers, removing unnecessary vars, etc.
2024-09-25 12:47:07 +08:00
Kevin Percy
67379e7607 MDL-80746 behat: Update initials bar behat selector to core_course 2024-09-25 12:47:07 +08:00
Kevin Percy
939e6b546a MDL-80746 core_course: Move initials selector from core_grades 2024-09-25 11:03:55 +08:00
Sara Arjona
e4e8bc8bbb
Merge branch 'MDL-82845-main' of https://github.com/ferranrecio/moodle 2024-09-19 18:29:37 +02:00
Laurent David
2aa7790804
MDL-83050 core_courseformat: Fix index highlight for collapsed section
* Collapsed sections on course index is not highlighting the correct
element when scrolling over subelements.
2024-09-19 17:48:39 +02:00
Sara Arjona
2236a2f449
Merge branch 'mdl-82784_main_wip' of https://github.com/james-cnz/moodle 2024-09-19 16:07:38 +02:00
ferranrecio
37ce4e8ece MDL-82845 course: fix subsection navigation nodes 2024-09-19 11:26:28 +02:00
Sara Arjona
d0f79969d1
Merge branch 'MDL-82407-main' of https://github.com/laurentdavid/moodle 2024-09-16 12:53:46 +02:00
Sara Arjona
b163e9c2d0
Merge branch 'MDL-82541-main' of https://github.com/ferranrecio/moodle 2024-09-16 09:38:35 +02:00
Jun Pataleta
dd96cf9e19
Merge branch 'MDL-83053-main' of https://github.com/aanabit/moodle 2024-09-16 11:20:54 +08:00
Laurent David
43d1898085 MDL-82407 core_courseformat: Fix course index for subsections
* Subsection should be exported in the course index in
the right order with all submodules.
2024-09-13 10:50:15 +02:00
Amaia Anabitarte
f75d148127 MDL-83053 format_singleactivity: Remove subsection from activities list 2024-09-13 09:13:50 +02:00
Huong Nguyen
ff39465628
Merge branch 'MDL-83084-main' of https://github.com/sarjona/moodle 2024-09-13 09:57:13 +07:00
ferranrecio
9795add527 MDL-82541 core_courseformat: improve orphan section visualitzation 2024-09-12 16:52:14 +02:00
ferranrecio
393d4f6043 MDL-82541 core_courseformat: fix orphan sections sorting 2024-09-12 16:30:12 +02:00
ferranrecio
9f9f5f6821 MDL-82541 core_courseformat: fix orphaned sections display 2024-09-12 16:12:13 +02:00
ferranrecio
9c55a02fb1 MDL-82541 core_course: fix orphaned sections logic 2024-09-12 16:07:42 +02:00
ferranrecio
ebaf06848c MDL-82541 core_courseformat: delegated sections in disabled plugins 2024-09-12 16:07:42 +02:00
Jun Pataleta
7bebfbd8b9
Merge branch 'mdl-83046_main' of https://github.com/james-cnz/moodle 2024-09-12 13:40:29 +08:00
Huong Nguyen
74b0fc8034
Merge branch 'MDL-79020-main' of https://github.com/ferranrecio/moodle 2024-09-11 09:19:04 +07:00
james-cnz
aae0265178 MDL-83046 course: Add non-delegated sections before delegated ones 2024-09-11 10:21:04 +12:00
Sara Arjona
b82d814ef2
MDL-83084 theme: Update the view category icon 2024-09-10 16:48:42 +02:00
Jun Pataleta
aeb079fde0
NOBUG: Add upgrade notes 2024-09-07 06:48:52 +08:00
ferranrecio
5ca36a02b7 MDL-79020 core_courseformat: hide completion edit link in bulk edit 2024-09-06 10:59:36 +02:00
Paul Holden
cbcb9d071f
Merge branch 'MDL-82571_V2' of https://github.com/lostrogit/moodle into main 2024-09-04 10:04:02 +01:00
Sara Arjona
5d5938a7ed
Merge branch 'MDL-82490-main' of https://github.com/laurentdavid/moodle 2024-09-03 19:40:38 +02:00
Carlos Castillo
241fa420d8 MDL-82571 customfield_number: Display format to number custom field
Add extra settings to the new number custom field in order to allow it
format the exported data using placeholders plus supporting multi language.
2024-09-03 15:24:01 +02:00
Mikel Martín
74cfbbacc6 MDL-81767 courseformat: Add tests for module quick creation
- Added unit tests for 'core_courseformat\external\create_module' web service.
- Added unit tests for 'create_module' state action.

Both tests need at least a module with 'FEATURE_QUICKCREATE', so mod_subsection
was used.
2024-09-03 13:35:04 +02:00
Mikel Martín
a0fa76c86b MDL-81767 courseformat: Add module quickcreation feature
- Add new 'FEATURE_QUICKCREATE' plugin feature that indicates the module can
  be created with a single click. It will use its own 'quickcreatename' defined
  string as the initial default name.
- Add new 'core_courseformat\external\create_module' web service to create new
  modules with the quickcreate featuer in the course page.
- Add a new 'create_module' state action.
2024-09-03 13:35:04 +02:00
Mikel Martín
84d9e83588 MDL-81767 course: Refactor activity chooser button output
- Add new 'activitychooserbutton' output class that allows adding extra action_links through hooks.
- Add new 'before_activitychooserbutton_exported' hook so plugins could add extra action links
  to the activity chooser button.
- Unify activitychooserbutton and activitychooserbuttonactivity into a single template.
2024-09-02 18:16:18 +02:00
Laurent David
e47bad8801 MDL-82490 course_format: Add subsection in section selector
* Add subsection in topic format section selector in the right order.
2024-09-02 17:43:33 +02:00
Huong Nguyen
7aef6e21cb
NOBUG: Add upgrade notes 2024-08-29 18:09:49 +07:00
Jun Pataleta
a84fb7c075
Merge branch 'MDL-82651-main' of https://github.com/lameze/moodle 2024-08-29 11:59:31 +08:00
Huong Nguyen
1af718f3ee
Merge branch 'MDL-82613-main-v02' of https://github.com/ferranrecio/moodle 2024-08-29 10:38:39 +07:00
Sara Arjona
0e4d6567a0
Merge branch 'MDL-73976' of https://github.com/paulholden/moodle 2024-08-28 14:08:58 +02:00
Simey Lameze
3b2be7f382 MDL-82651 behat: remove unnecessary steps 2024-08-28 13:54:09 +08:00
Ilya Tregubov
8a80fca393 Merge branch 'MDL-82547' of https://github.com/paulholden/moodle 2024-08-28 11:20:02 +08:00
ferranrecio
245f826b43 MDL-82613 core_courseformat: fix section visibility badge 2024-08-27 16:11:32 +02:00
Huong Nguyen
4f25ac1044
Merge branch 'MDL-82158-main' of https://github.com/andrewnicols/moodle 2024-08-27 10:01:38 +07:00
Jun Pataleta
c3d10c447b
Merge branch 'MDL-82357-main' of https://github.com/laurentdavid/moodle 2024-08-22 17:47:37 +08:00
Laurent David
aa18e063d7 MDL-82357 core_courseformat: A subsection cannot move onto itself
* Subsections are considered as section and need to be prevented to
be moved into itself so to avoid infinite recursive structures.
This prevent this from happenning at a lower level (state)
2024-08-21 09:46:52 +02:00
James C
91c8d671ca MDL-82784 course: Don't try to change a non-existant add section button 2024-08-21 14:59:24 +12:00
Andrew Nicols
c21aeeb380
MDL-82158 core: Update most uses of cache_ classes 2024-08-20 20:44:28 +08:00
Huong Nguyen
dca18ebca3
Merge branch 'MDL-81634-main' of https://github.com/andrewnicols/moodle 2024-08-20 09:30:44 +07:00
Sara Arjona
a0924f0e80
Merge branch 'MDL-82376-main' of https://github.com/laurentdavid/moodle 2024-08-19 16:52:07 +02:00
Sara Arjona
7e0bd1b12b
Merge branch 'MDL-82619-main-cr' of https://github.com/ferranrecio/moodle 2024-08-19 12:08:19 +02:00
Jun Pataleta
83a031e39f
Merge branch 'MDL-82478-main' of https://github.com/aanabit/moodle 2024-08-19 11:42:35 +08:00
Amaia Anabitarte
ca3c2c46e8 MDL-82619 core_course: Subsections in hidden sections should be hidden 2024-08-16 14:33:43 +02:00
Paul Holden
3a4c0f32b2
MDL-82547 javascript: convert to native inplace editable events. 2024-08-16 10:15:22 +01:00