Commit graph

1220 commits

Author SHA1 Message Date
Mikel Martín
045f8cb50d MDL-78204 course: Use 'showmore' component in course restrictions
- Create new availability template, so it can be reused from both
section/availability and cm/availability mustaches.

- When rendering activity or section restrictions with long or multiline text
display a condensed version (excerpt) and use 'showmore' component to add
showmore/showless behaviour.

Co-authored-by: Ferran Recio <ferran@moodle.com>
2023-06-28 15:08:13 +02:00
Sara Arjona
8c944b217f Merge branch 'MDL-78201-master' of https://github.com/aanabit/moodle 2023-06-21 10:56:33 +02:00
Mikel Martín
0cacc7afb8 MDL-78199 course: Move activity plugintype to a tooltip 2023-06-16 12:40:09 +02:00
Mikel Martín
50bf102a81 MDL-78199 course: Move activity completion to a dropdown
- Add new dropdown to display completion
- Fix completion behat steps with selectors that were not specific enough
- Update behat step that now needs to open completion requirements dropdown before
2023-06-16 12:40:09 +02:00
Mikel Martín
d5aa5b7b07 MDL-78199 course: Add styles for activity card elements
- Reduce activity icon size: Until MDL-78284 arrives, current activityiconcontainer should be reduced to fit the new UI
- Reduce activity actions button size
- Add styles for activity altconent
- Add styles for activity descriptions and text and media content.
- Add styles to show images inside altcontent with rounded borders.
- Add styles for activity dates
- Add styles for activity visibility
- Add styles for restrictions
- Add styles for activity badge
2023-06-16 12:39:50 +02:00
Mikel Martín
80b0b3e608 MDL-78199 course: New activity cards layout
- Refactor activity card templates to use a grid layout.
- Remove 'description-inner' related classes and styles.
- Add small comments to SCSS for future better understanding.
- Add independent renderable for course module icon
2023-06-16 12:29:10 +02:00
Amaia Anabitarte
3ae96a0496 MDL-78201 core_course: Prepare group mode state actions 2023-06-16 00:52:18 +02:00
Andrew Nicols
4d15a4ee32
Merge branch 'MDL-69231-master' of https://github.com/lameze/moodle 2023-06-15 10:58:56 +08:00
Sara Arjona
da16718e8b MDL-78207 course: Add tests to cover activitybadge feature 2023-06-13 12:09:58 +02:00
Sara Arjona
6db715f5c3 MDL-78207 course: Add new module badges feature
The new activity card design proposed for Moodle 4.3 differentiates badge
information from other HTML content (displayed using the afterlink feature).
This commit adds a new activitybadge class that can be extended by any
module to display any content in a badge near the activity name. These
are the main features:
- The badge content is always plain text (no HTML).
- The badge style can be set (by default is initialized with badge-none,
but it can be set by any module).
- An optional URL to redirect the user when the badge is clicked.
- An optional ID to add the element in case the module wants to add some
JS to the badge events.
- Optionally, any other extra HTML attributes to the badge element (for
example, data attributes).
2023-06-13 12:09:58 +02:00
Sara Arjona
b6849bd973 MDL-78207 course: Move afterlink at the end of the card 2023-06-13 11:26:08 +02:00
Stevani Andolo
c27237a998 MDL-78047 core_courseformat: Wrapping added to text and media activity 2023-06-07 12:11:22 +08:00
Andrew Nicols
aa2fc4048e MDL-69231 behat: Update tests to use new generator 2023-06-02 12:47:27 +08:00
Ferran Recio
c07bbf8d76 MDL-78148 core_courseformat: reduce the use of uniqid in templates 2023-05-29 08:38:40 +02:00
Meirza
07a281efff MDL-77350 course: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:19 +07:00
Sara Arjona
ed2708bfa9 Merge branch 'MDL-78006' of https://github.com/paulholden/moodle 2023-05-03 09:04:30 +02:00
Marina Glancy
a051d3466a
MDL-78006 course: test for adding activity in a new section 2023-04-24 11:40:31 +01:00
Jun Pataleta
9095bb0ef9 MDL-78000 upgrade: add the 4.2.0 separation line to all upgrade scripts 2023-04-22 23:17:50 +08:00
Jun Pataleta
8dd488cb5b Merge branch 'MDL-77989-master' of https://github.com/andrewnicols/moodle 2023-04-21 13:44:51 +08:00
Andrew Nicols
fcba0cb379 MDL-77989 core: Fix uses of legacy external API 2023-04-21 13:33:56 +08:00
Jun Pataleta
445a139d21 Merge branch 'MDL-73012-master' of https://github.com/ferranrecio/moodle 2023-04-20 16:32:15 +08:00
Jun Pataleta
a14f23aa2a Merge branch 'MDL-77922-master' of https://github.com/ferranrecio/moodle 2023-04-20 16:09:56 +08:00
Ferran Recio
86fe8e582e MDL-73012 core_courseformat: add pending to move section modal 2023-04-19 12:15:32 +02:00
Eloy Lafuente (stronk7)
061c9d7ba0 MDL-77940 versions: bump all versions and requires near release
version = 2023042400 release version
requires= 2023041800 current rc1 version
2023-04-18 18:08:09 +02:00
Ferran Recio
f81b79a4b1 MDL-77922 core_courseformat: add pending to move activity modal 2023-04-18 13:22:08 +02:00
Helen Foster
ee8408c4d5 MDL-77878 lang: Import fixed English strings (en_fix) 2023-04-14 13:08:38 +01:00
Marina Glancy
8fc1486d36 MDL-77164 various: fix incorrect phpdocs 2023-04-13 11:35:06 +01:00
Marina Glancy
9ffbcce0ac MDL-77164 various: fix mustache template name 2023-04-13 09:43:15 +01:00
Marina Glancy
04f8fdd021 MDL-77164 various: fix javascript AMD module name 2023-04-13 09:43:15 +01:00
Sara Arjona
c80dd76bef Merge branch 'MDL-77456-master' of https://github.com/laurentdavid/moodle 2023-03-30 18:42:02 +02:00
Sara Arjona
b4cb4ac512 Merge branch 'MDL-77672-master' of https://github.com/ferranrecio/moodle 2023-03-30 17:32:53 +02:00
Ferran Recio
da1aa96664 MDL-77672 core_courseformat: fix bulk in one section per page 2023-03-30 16:42:59 +02:00
Sara Arjona
afe1f192c4 Merge branch 'MDL-76895-master' of https://github.com/ferranrecio/moodle 2023-03-30 12:51:03 +02:00
Ferran Recio
879dc5f308 MDL-76895 core_courseformat: add detailed bulk selection checks
To prevent future regressions some extra checks has been added to the
bulk_select feature file. The new checks validate the activities and
sections bulk selectors are really selected, not only the total count.
2023-03-30 12:13:24 +02:00
Ferran Recio
0436605df5 MDL-76895 core_courseformat: add fast bulk selections 2023-03-30 11:40:45 +02:00
Sara Arjona
4bb8de0c6e Merge branch 'MDL-77677-master' of https://github.com/ferranrecio/moodle 2023-03-29 10:33:07 +02:00
Laurent David
0ff7295ee4 MDL-77456 core_courseformat: Fix highlight in course index
* When navigating to a restricted activity as a student from the course index
the item is not highlighted when refreshing the page.
2023-03-29 09:13:54 +02:00
Ferran Recio
f52d4fcb82 MDL-77677 core_courseformat: debounce reload cm method 2023-03-28 09:48:51 +02:00
Jake Dallimore
efac6d72cf Merge branch 'MDL-77105-master-4' of https://github.com/junpataleta/moodle 2023-03-28 11:42:29 +08:00
Ferran Recio
5cdb09d10c MDL-77734 core_courseformat: add title to bulk duplicate activities 2023-03-27 11:17:55 +02:00
Jun Pataleta
95d0e30eff MDL-77105 course_format: Add 'nofilter' class when necessary
Add the `.nofilter` class for activity icons when the icon URL's
`filtericon` parameter is not set, so they get rendered as they are on
the course homepage.
2023-03-27 13:32:09 +08:00
Sara Arjona
ee3502dfc4 Merge branch 'MDL-76905-master' of https://github.com/ferranrecio/moodle 2023-03-22 16:52:47 +01:00
Ferran Recio
ae799fad7d MDL-76905 core_courseformat: match prototype visual style 2023-03-22 14:08:51 +01:00
Ferran Recio
a1ea81eb8b MDL-77433 core_courseformat: use validate_cms to check capabilities 2023-03-22 13:21:05 +01:00
Ferran Recio
3beffbb506 MDL-76893 core_courseformat: bulk move activites 2023-03-21 15:46:23 +01:00
Jun Pataleta
109d902105 Merge branch 'MDL-76894-master' of https://github.com/ferranrecio/moodle 2023-03-20 10:43:04 +08:00
Jun Pataleta
12237e6a8c Merge branch 'MDL-76851-master' of https://github.com/ferranrecio/moodle 2023-03-20 10:39:31 +08:00
Ferran Recio
6ac6100f1c MDL-76894 core_courseformat: bulk move section 2023-03-17 16:18:19 +01:00
Ferran Recio
856b295569 MDL-76851 core_courseformat: plugin custom editor strings
Most section related actions require the frontend to use alternative
strings depending on the format plugin lang file. This patch adds
overridden strings to the current setViewFormat course editor setup
object.
2023-03-17 11:07:13 +01:00
Ferran Recio
9c583f5ec5 MDL-76851 core_courseformat: bulk section and cm delete action 2023-03-17 10:26:00 +01:00