Shamim Rezaie
8b33494324
MDL-67970 output: replace new-sections attribute with data-new-sections
...
new-sections is not a valid attribute name for the a element.
Replaced that with data-new-sections
2020-03-17 18:20:43 +11:00
Michelle Melton
2ec76277dc
MDL-64169 course: fix padding when display on one section per page
...
(amended to keep the $o.= consistent with surrounding code)
2020-01-29 22:36:16 +01:00
Gareth Barnard
0ded67ffd7
MDL-65853 format_base: Labels counted in section activity summary.
2019-06-27 23:36:06 +01:00
Damyon Wiese
cce54c4732
MDL-64819 output: Activity menu icons
...
Remove duplicate alt text from activity menu icons and the links to add new sections.
2019-04-08 14:33:36 +02:00
Damyon Wiese
7c05d8a3d2
MDL-62748 course: maxsections is a limit
...
For course formats shipped with core, maxsections should be a limit to the number of sections
allowed in the course.
2018-09-04 22:44:45 +02:00
Alex
a91437a3c1
MDL-57600 format: Fix spelling errors
2018-05-28 09:35:35 +08:00
Luca Bösch
398ed46942
MDL-61015 course: consistently display hidden sections
...
This commit moves the availability info on top.
2018-05-21 11:33:35 +02:00
Marina Glancy
3b29978c8e
MDL-61015 course: consistently display hidden sections
...
When section is hidden but the course setting says to show hidden sections display the hidden
sections consistently with how we display the sections with access restriction.
The only difference is that we didn't previously display the summary of the hidden section
in this case, the new logic repeats this behavior
2018-05-17 08:01:24 +02:00
David Mudrák
7352805df1
MDL-58985 course: Fix display of availability information
...
The availability info text can be either a one line short text such as
"Hidden from students" but it can also be a long HTML formatted text
with the list of all restricted access conditions. For the latter, using
bootstrap labels was not appropriate.
This extends the template context data with some boolean flags that
allow to better distinguish the source and meaning of the availability
information and display it accordingly.
Credit goes to Marina Glancy for the solution idea.
2017-06-12 09:38:56 +02:00
Marina Glancy
88a7f77525
MDL-58837 course: do not confirm deleting empty sections
2017-05-11 18:48:08 +08:00
Marina Glancy
f24e17c93e
MDL-58837 course: allow to add multiple sections
2017-05-11 18:48:04 +08:00
Marina Glancy
89b909f6de
MDL-57769 course: prepare to remove numsections option
2017-03-30 08:26:12 +08:00
Damyon Wiese
b9b409cfc3
MDL-40759 icons: Peer review fixes (all minor)
2017-03-17 15:52:46 +08:00
Damyon Wiese
8857c715d1
MDL-40759 icons: Behat fixes for font-awesome
2017-03-17 15:52:18 +08:00
Damyon Wiese
663640f5b3
MDL-40759 icons: convert uses of pix_url to pix_icon
...
Also change filepicker to use scaled svgs instead of sets of custom pngs. The svgs are taken from font-awesome.
2017-03-17 15:52:17 +08:00
Marina Glancy
8341055eb4
MDL-4782 course: Allow activities in the "stealth" mode
...
Add field 'visibleoncoursepage' to the course_modules table
Add site-wide setting for turning on stealth mode availability
Add callback for "stealth" mode support in the course formats
Change display of modules/sections availability on the course page
2017-02-14 16:38:05 +08:00
Marina Glancy
084c2ef1ef
MDL-4782 course: swap availability info and description
2017-02-14 15:57:32 +08:00
Marina Glancy
f26481c2dc
MDL-51802 course: allow to edit section names on the course page
2016-02-13 11:07:46 +08:00
Paul Nicholls
6d1ee59af2
MDL-52773 course: Fix section return from single section page
...
When editing a section from a single section page, you should be returned
to the section you were viewing/editing, not always to section 1.
2016-01-15 11:49:51 +13:00
Cameron Ball
c47b6f97d7
MDL-51993 course: Set valid default for section_edit_control_menu
...
Thank you to Gareth Barnard for originally providing this patch.
2015-11-03 10:29:38 +08:00
Eric Merrill
d76acdbc17
MDL-51610 course: Change section menu to "Edit" and order buttons
2015-10-12 11:53:33 -04:00
Syxton
c73fd11e86
MDL-48947 patch - fix unclickable menu issues
...
remove z-index fix and instead keep the header from gaining the opacity
change on hide
2015-10-01 10:54:23 -04:00
Syxton
60cf074239
MDL-48947 course: Section button cleanup
...
Creates a new method of handling all the section related icons.
Including a new method that places these actions in a menu for topic and
weeks course formats. (This version replaces "Edit" with "Topic/Week/or
Section menu")
2015-09-17 10:40:31 -04:00
Marina Glancy
330e51fa14
MDL-10405 course: CSS classname correction
2015-02-10 13:05:51 +08:00
Marina Glancy
ca9cae84ad
MDL-10405 course: deleting sections
2015-02-09 16:46:07 +08:00
Sam Hemelryk
0a293483e8
MDL-39833 format: tidied up API improvement to allow for future backport
2014-04-09 10:09:44 +12:00
Sam Hemelryk
da98185a58
Merge branch 'MDL-39833' of https://github.com/shashirepo/moodle
2014-04-09 10:09:02 +12:00
sam marshall
00c832d7a1
MDL-44070 Conditional availability enhancements (8): display
...
Includes theme and renderer changes required for the new feature.
There are two parts: style required for the display as part of the
course page (when showing the list of conditions for an activity),
and style required for the settings form.
This change supports both the bootstrapbase theme (which was the
main theme used during development) and the old base theme.
2014-04-07 20:11:56 +01:00
shashirepo
600be271c6
MDL-39833 course: require token change
...
MDL-39833 course: require token change
2014-04-05 12:29:47 +05:30
Dan Poltawski
dc88f6699d
Revert "MDL-43852 Filters Fixed naked-OR conditions."
...
While the patch worked as intended, we discovered some other concerns
about use of this setting in testing.
This reverts commit 840c1c554d .
2014-03-06 09:03:19 +08:00
Gordon Bateson
840c1c554d
MDL-43852 Filters Fixed naked-OR conditions.
2014-02-28 23:55:17 +01:00
Marina Glancy
93c9a86dea
MDL-43821 completion: fix bug in section completion progress
...
Thanks to Shane Dye for the provided patch
2014-01-31 16:56:43 +08:00
Andrew Nicols
b4ab504574
MDL-43534 Course: Remove deprecated functions from course/renderer
...
This function was deprecated in 2.4 and was due for removal in 2.6.
Removing as per deprecation policy.
2014-01-02 11:35:33 +08:00
Jason Fowler
d9308a07e8
MDL-43083 Course: Swapping the edit/cog for the right size icon
2013-11-27 15:06:25 +08:00
Frederic Massart
be99db5b96
MDL-22669 course: Display section number for orphaned activities
2013-10-28 14:44:08 +08:00
Jerome Mouneyrac
9f66c7c80a
MDL-41252 Simple changes to main course page to improve accessibility - original patch of Nate Baxley
2013-10-08 16:53:06 +08:00
rwijaya
faf6010b10
MDL-40829: courses heading: remove headerblock class from header and fix heading levels.
...
Also, changing h3 classname from name to categoryname.
Added note to theme/upgrade.txt to describe the heading level changes.
2013-10-02 09:46:26 +13:00
Dan Poltawski
1d49a5cdc6
Revert "MDL-40829: courses heading: remove 'headerblock' class from header and fix heading levels"
...
This reverts commit 278d64572d .
Conflicts:
theme/bootstrapbase/style/moodle.css
2013-09-12 19:21:43 +08:00
Rossiani Wijaya
278d64572d
MDL-40829: courses heading: remove 'headerblock' class from header and fix heading levels
2013-09-10 17:09:38 +08:00
Jason Fowler
2e2d0f75dd
MDL-40833 Course - Single topic pages need h3 for section heading
2013-09-04 15:39:27 +08:00
Damyon Wiese
bbb483b259
MDL-36002 Drag and Drop: Improvements to keyboard drag and drop
...
List of fixes:
* Add a simulated drag start event to fix problems with block drag and drop that
were expecting it.
* Add an access-hidden title for the General section in a course format. This
is used to provide the text for the drop region (better than the first activity in the section)
* Changed the text in the list to 'Move to "General"' instead of 'Move after General'. This
makes more sense for activities when you have a list of activities and sections together.
2013-08-15 16:15:32 +08:00
Frederic Massart
31f4725932
MDL-39542 course: Return to right section when JS is off
2013-05-08 11:32:25 +08:00
Gareth J Barnard
3f435f899d
MDL-39099 course_format: Allow section_summary() to be overridden.
2013-04-30 16:56:55 +01:00
Gareth J Barnard
d46e26f682
MDL-34917 course: Jump to section navigation for 'One section per page'.
2013-03-23 17:01:32 +00:00
Sam Hemelryk
c8d3475e17
Merge branch 'wip-MDL-37085-master' of git://github.com/marinaglancy/moodle
2013-01-15 16:30:36 +13:00
Marina Glancy
9a36be7361
MDL-37085 Properly deprecated functions print_xxx() from course/lib.php
...
- get_print_section_cm_text()
- print_section_add_menus()
- print_section()
- make_editing_buttons()
2013-01-14 15:01:28 +11:00
Marina Glancy
9a6aa5c17d
MDL-37085 Substitute function print_section_add_menus() with core_course_renderer::course_section_add_cm_controls()
2013-01-14 15:01:23 +11:00
sam marshall
e81da1540a
MDL-36095 Section availability: Make behaviour consistent with activities
2013-01-07 15:57:00 +00:00
Frederic Massart
06b7ed0a45
MDL-36415 usability: Use new up/down and ordering icons
2012-11-16 12:47:09 +08:00
Marina Glancy
081c8f7fe0
MDL-36594 Add function format_base::is_section_current()
...
- added function format_base::is_section_current()
- overwritten in format_weeks::is_section_current()
- deprecated function format_section_renderer_base::is_section_current()
2012-11-14 15:54:13 +08:00