6520 Commits

Author SHA1 Message Date
Angelia Dela Cruz
9f101a30b2 MDL-78158 Behat: Use data generators to add blocks 2023-07-03 17:41:21 +08:00
Shamim Rezaie
316d79d038 MDL-77375 core: Cleanup redundant set_constraint() calls
Also removed the 10rem bottom margin form the quiz editing page. It was
there to make sure that there is enough room for the 'add new question'
dropdown. But it's not needed anymore (hasn't been since long time ago).
2023-07-02 00:41:22 +10:00
Huong Nguyen
65b13ed81b
Merge branch 'MDL-78204-master' of https://github.com/roland04/moodle 2023-06-30 16:12:10 +07:00
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
Leon Stringer
06a8efde29 MDL-78596 core_course: Remove divider
With courselistshortnames enabled Moodle 3.11 and earlier showed
"Category | Short name" on the first line of course cards (for example
in block_myoverview).  From Moodle 4.0 the category is moved to the last
line making the first line "Short name |".  This change removes that
stray "|".
2023-06-27 17:39:27 +01:00
Ilya Tregubov
4ab6108c79
Merge branch 'MDL-78443-master' of https://github.com/jleyva/moodle 2023-06-27 11:00:54 +08:00
Jun Pataleta
cb4b3d54ee Merge branch 'MDL-76704-master' of https://github.com/safatshahin/moodle 2023-06-21 17:20:54 +08:00
Sara Arjona
8c944b217f Merge branch 'MDL-78201-master' of https://github.com/aanabit/moodle 2023-06-21 10:56:33 +02:00
Ilya Tregubov
7aa0fd916c
Merge branch 'MDL-76174' of https://github.com/larsbonczek/moodle 2023-06-21 14:26:16 +08:00
Safat
f7b2f36218 MDL-76704 core_course: Add settings to control selected provider 2023-06-21 14:46:32 +10:00
Lars Bonczek
7d09932365 MDL-76174 core_course: get_nearest_editable_subcategory performance fix 2023-06-20 14:42:17 +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
a00177fd8f
Merge branch 'MDL-78385' of https://github.com/paulholden/moodle 2023-06-15 11:06:58 +08:00
Andrew Nicols
4d15a4ee32
Merge branch 'MDL-69231-master' of https://github.com/lameze/moodle 2023-06-15 10:58:56 +08:00
Ilya Tregubov
8debfd63ba
Merge branch 'MDL-78207-master' of https://github.com/sarjona/moodle 2023-06-15 09:21:11 +08:00
Juan Leyva
72f269a05b MDL-78443 course: Missing require for course_request 2023-06-14 15:45:09 +02:00
Paul Holden
e3583a2302
MDL-78385 course: fix non-AJAX activity indentation URL parameter. 2023-06-14 12:58:13 +01:00
Ilya Tregubov
9611669cae
Merge branch 'MDL-70152-master' of https://github.com/andelacruz/moodle 2023-06-14 13:24:06 +08:00
Sara Arjona
da16718e8b MDL-78207 course: Add tests to cover activitybadge feature 2023-06-13 12:09:58 +02:00
Sara Arjona
af164ce9c7 MDL-78207 resource: Move file type to activity badge
One of the resource settings, the file type, has been moved to the
activity badge near the activity name.
The rest of the information will be displayed using the afterlink
feature.

However, for now, the activity page still displays all the information
together (that's why resource_get_optional_details() supports now one
new parameter, $showtype, to define whether the file type should be
displayed or not).
2023-06-13 12:09:58 +02:00
Sara Arjona
987ceb1b69 MDL-78207 forum: Move unread messages to activity badge 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
Jun Pataleta
ab384ef813 Merge branch 'MDL-78175-master' of https://github.com/ferranrecio/moodle 2023-06-13 13:43:48 +08:00
Sara Arjona
d91a9d5117 Merge branch 'MDL-71183' of https://github.com/paulholden/moodle 2023-06-07 12:38:46 +02:00
Sara Arjona
c00b8f7c87
Merge branch 'MDL-78047-master' of https://github.com/stevandoMoodle/moodle 2023-06-07 18:08:47 +08: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
74813d9f37
Merge branch 'MDL-77357-master' of https://github.com/safatshahin/moodle 2023-06-06 11:19:42 +08:00
Simey Lameze
2367bc9ff6 MDL-69231 behat: remaining work for role capability generator
This commit does few things:
* Unify data generators usage to role short name.
* Replace remaining manual steps to use the new data generator.
* Also replaced other manual steps to set config to use data generators.
* Tidy up of some tests, aligning pipes and splitting one line steps into multiple lines.
* Fixes tests to have one Given/When/Then per scenario.
2023-06-02 12:47:27 +08:00
Andrew Nicols
aa2fc4048e MDL-69231 behat: Update tests to use new generator 2023-06-02 12:47:27 +08:00
Andrew Nicols
8c9282f5d6 MDL-69231 tests: Improve existing role generator
Support definition of context levels and permissions.
2023-06-02 12:47:27 +08:00
Sara Arjona
9d158408ae Merge branch 'MDL-76693-master' of https://github.com/roland04/moodle 2023-05-31 17:08:50 +02:00
Safat
982938fa04 MDL-77357 core_course: Api call for dynamic form fields 2023-06-01 00:39:03 +10:00
Sara Arjona
f0dd54e7fd Merge branch 'MDL-78148-master' of https://github.com/ferranrecio/moodle 2023-05-31 11:42:07 +02:00
Mikel Martín
ab66e73a5b MDL-76693 core_course: Fix activity chooser summary overlap
In activity chooser modal, there is an overlap issue in the information "sub-page".
Changing some classes in the layout solves the problem.
2023-05-29 09:43:39 +02:00
Ferran Recio
0ad8fd077c MDL-78175 course: move role renaming to participants 2023-05-29 09:25:18 +02:00
Ferran Recio
c07bbf8d76 MDL-78148 core_courseformat: reduce the use of uniqid in templates 2023-05-29 08:38:40 +02:00
Jun Pataleta
42f930ecf0 Merge branch 'MDL-76471' of https://github.com/paulholden/moodle 2023-05-29 11:08:13 +08:00
Angelia Dela Cruz
c95ef35b60 MDL-70152 behat: Forum behat generators use UI
Behat cleanup and optimisation
2023-05-29 10:32:20 +08:00
Angelia Dela Cruz
640db57c0e MDL-70152 behat: Forum behat generators use UI
Replace steps that manually add forum and forum post instances
via the UI and use Behat generators. This improves the speed of
Behat test runs.
2023-05-29 10:32:12 +08:00
Andrew Nicols
d895574c9a
Merge branch 'MDL-77252-master' of https://github.com/davewoloszyn/moodle 2023-05-25 10:49:30 +08:00
Jun Pataleta
ac0767cac4 Merge branch 'MDL-77353_Master' of https://github.com/catalyst/moodle-MDL-76126 2023-05-24 20:18:59 +08:00
Nathan Nguyen
1452caac93 MDL-77353 core: examples of new user function usage 2023-05-24 13:05:13 +10:00
Sara Arjona
53bd6aaaf8 Merge branch 'MDL-75640' of https://github.com/paulholden/moodle 2023-05-23 17:41:06 +02:00
Sara Arjona
1df51b02f8 Merge branch 'MDL-78242' of https://github.com/paulholden/moodle 2023-05-23 17:36:50 +02:00
Paul Holden
5961c2d9cd
MDL-76471 enrol: report filter on enrolment instance custom name. 2023-05-19 17:39:55 +01:00