1
0
mirror of https://github.com/moodle/moodle.git synced 2025-03-23 17:10:20 +01:00

101514 Commits

Author SHA1 Message Date
Shamim Rezaie
d93fb10f88 MDL-71603 editor_atto: set aria-pressed when a button status is changed 2021-07-28 16:45:27 +10:00
Shamim Rezaie
1eeb7ce395 MDL-71603 editor_atto: Make button icons decorative only 2021-07-28 15:43:59 +10:00
Shamim Rezaie
b078f18c6e MDL-71603 editor_atto: Use aria-expanded for show/hide buttons toggle 2021-07-28 15:43:59 +10:00
Shamim Rezaie
7029fa056c MDL-71603 editor_atto: Focus on the toggled row
quoted from
https://www.accessibility-developer-guide.com/examples/sensible-aria-usage/expanded/

As a general rule, the toggled element should be right below the toggle
button, so screen readers will find it easily. If that is not the case,
then the focus should be placed inside the element upon toggling it
visible, and back to the initial element upon toggling it invisible.
2021-07-28 15:43:59 +10:00
Shamim Rezaie
90b3d575e3 MDL-71603 editor_atto: Wrap toolbar buttons in toolbar rows 2021-07-28 15:43:21 +10:00
Ilya Tregubov
8c0853d026 weekly release 4.0dev 2021-07-23 11:30:58 +02:00
Ilya Tregubov
152aa5d612 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2021-07-23 11:30:56 +02:00
Jun Pataleta
68fa468885 MDL-71817 calendar: Use root node to find the target elements
Instead of passing querying for the root element again by its ID
which changed in this issue, use the already existing root element
at the beginning of this Mustache JS code. It also makes maintenance
simpler in the future.
2021-07-22 17:39:01 +08:00
Jun Pataleta
68bd3a1158 Merge branch 'MDL-71817-master' of git://github.com/lameze/moodle 2021-07-22 11:27:08 +08:00
Andrew Nicols
4c9f590f18 Merge branch 'MDL-70427' of git://github.com/paulholden/moodle 2021-07-22 11:22:13 +08:00
Jun Pataleta
05db683745 Merge branch 'MDL-72154-master' of git://github.com/mickhawkins/moodle 2021-07-22 11:11:20 +08:00
Jun Pataleta
8a2c797cc0 MDL-71817 calendar: Set the calendar view mode properly for month view
* Store the view mode of the calendar in the calendar_information
   object.
 * Let the month exporter handle the production of context data by
   moving 'viewingmonth', 'showviewselector', and 'viewinginblock'
   inside it.
 * Set the proper calendar view mode in the core_calendar/month_detailed
   template.
 * Pass the calendar view mode to the
   core_calendar_get_calendar_monthly_view WS function.
2021-07-22 09:04:44 +08:00
Simey Lameze
d748c71693 MDL-71817 calendar: change the calendar heading to h4 in the block
This commit adds the logic that change the size of the calendar
header depending if the user is viewing in the block or in the
full view.
2021-07-22 09:04:44 +08:00
Simey Lameze
b0133904bf MDL-71817 calendar: behat changes for calendar block
This commit does few things:

1) Remove unnecessary "I hover over today in the calendar"
steps as it's not necessary to hover onto the day to see the events
any more.

2) Replace "I follow This month" steps to "I follow Full calendar"

3) Update i_create_a_calendar_event_with_form_data() to use the new
fullcalendar lang string.
2021-07-22 09:00:30 +08:00
Jun Pataleta
73a14b1075 MDL-71817 calendar: Fix duplicate IDs for multiple calendar blocks
Done by:
* Designating instance IDs for each month_exporter instances and
assigning these instance IDs in templates.
* Adding the instance ID as an optional parameter for the
core_calendar_renderer::course_filter_selector() to generate
course filters with unique element IDs.
2021-07-22 08:46:01 +08:00
Simey Lameze
f0897dce80 MDL-71817 calendar: clicking on day link should redirect to day view
This patch prevents the full day view to be loaded
in the calendar block as this won't be supported.
When clicking in the day link it will redirect the
user to day view in the full calendar.
2021-07-22 08:46:01 +08:00
Simey Lameze
2e11059734 MDL-71817 calendar: make calendar block look like full calendar
This commit does few things:

1) Removes .path-calendar specificity styles from full view can
work on the Dashboard.

2) The new event button colour has been changed to btn-primary.

3) CSS fix to make the calendar controls inline on small block.
2021-07-22 08:46:01 +08:00
Simey Lameze
47ca6c017a MDL-71817 calendar: remove year from prev/next links 2021-07-22 08:46:01 +08:00
Simey Lameze
98612827b0 MDL-71817 calendar: only update url on full view
This patch prevents the URL from being updated on the calendar
block. It only updates the url if viewing the full calendar.
2021-07-22 08:46:01 +08:00
Simey Lameze
d2f612ab24 MDL-71817 block_calendar_month: load month view in the block 2021-07-22 08:46:01 +08:00
AMOS bot
a86e2213bf Automatically generated installer lang files 2021-07-22 00:07:56 +00:00
Víctor Déniz
a9dfde7543 Merge branch 'MDL-72001-master' of git://github.com/roland04/moodle 2021-07-21 23:04:51 +01:00
Víctor Déniz
73a868c38d Merge branch 'MDL-72108-master' of git://github.com/andrewnicols/moodle 2021-07-21 19:25:54 +01:00
Michael Hawkins
dffe445923 MDL-72154 calendar: Add manage subscription to export page breadcrumbs 2021-07-21 16:41:13 +08:00
Michael Hawkins
45fc997e84 MDL-72154 calendar: Remove unnecessary strings/link from import page 2021-07-21 16:41:13 +08:00
Ilya Tregubov
501bc9e117 Merge branch 'MDL-71604-master' of git://github.com/rezaies/moodle 2021-07-20 14:09:11 +02:00
Ilya Tregubov
494a9bb41f Merge branch 'MDL-72125-master' of git://github.com/andrewnicols/moodle 2021-07-19 13:03:46 +02:00
Andrew Nicols
f29f6a28d1 MDL-72125 mod_assign: Use assign submission data generators 2021-07-19 18:41:32 +08:00
Andrew Nicols
2bb7e34b76 MDL-72125 mod_assign: Add data generator for assign submissions 2021-07-19 18:41:31 +08:00
Andrew Nicols
46a5c75196 MDL-72125 testing: Make global $CFG available when including generators
This will remove the requirement to add the global $CFG call to the top
of generator scripts.
2021-07-19 18:41:31 +08:00
Ilya Tregubov
295cd6dd7c Merge branch 'MDL-72078-master' of git://github.com/rezaies/moodle 2021-07-19 10:28:51 +02:00
Shamim Rezaie
e2150f7da0 MDL-72078 editor_atto: Use role=application and aria-describedby in Atto
According to https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Application_Role
WYSIWYG web editors are proper use of the application role.
2021-07-19 16:45:20 +10:00
Shamim Rezaie
da509ff492 MDL-71604 editor_atto: Move accessibility buttons to the first row 2021-07-19 16:42:25 +10:00
Mikel Martín
ef30d47645 MDL-72001 my: Add '__default' name check when retrieving default page 2021-07-16 11:56:48 +02:00
Andrew Nicols
87b50a42e8 MDL-72125 behat: Add get_activity_id() behat generators helper 2021-07-16 12:33:56 +08:00
Andrew Nicols
7cd408501b MDL-72125 testing: Set a default idnumber when creating activities
The activity generator currently requires an idnumber when creating
activities, but this is not a requirement when creating the same
activity through the UI. The requirement comes because we want to
provide a way to refer to activities in subsequent steps.

This commit modifies the behaviour such that the generator uses the name
of the activity as the default idnumber.

This has two  main benefits:
1. it simplfies generation of activities; and
2. it makes the language used when writing behat tests much more natural.

With this change, steps will refer to the activity by its idnumber/title
in all cases, rather than sometimes by an idnumber which bears no
relevance to the title.
2021-07-16 12:33:56 +08:00
Andrew Nicols
daf9b24b6a MDL-72125 testing: Add helper to run generators as a user 2021-07-16 12:33:56 +08:00
abgreeve
8453fe0ddb weekly release 4.0dev 2021-07-16 10:16:35 +08:00
abgreeve
42ca8d9219 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2021-07-16 10:16:34 +08:00
AMOS bot
fb95d7cd6b Automatically generated installer lang files 2021-07-16 00:07:50 +00:00
Eloy Lafuente (stronk7)
f861b7a9bf Merge branch 'MDL-71788-master-fix' of git://github.com/junpataleta/moodle 2021-07-15 16:13:11 +08:00
Jun Pataleta
80f0b15165 Merge branch 'MDL-63770-master' of /home/jun/moodles/stable_master/moodle 2021-07-15 16:13:11 +08:00
Jun Pataleta
e6f1baa9c8 Merge branch 'MDL-71456-master' of /home/jun/moodles/stable_master/moodle 2021-07-15 16:13:06 +08:00
Jun Pataleta
6c131ead99 Merge branch 'MDL-71775-master' of git://github.com/lameze/moodle 2021-07-15 16:10:48 +08:00
Jun Pataleta
a067fc1df1 MDL-71788 calendar: Remove ready state listener
Adding a document ready state change listener might be too late by the
time this AMD module gets loaded. So there's really no point listening
for it. It's better to enable the Copy URL button by the time this
the calendar export module gets loaded since at this point, the
copy to clipboard JS module would have been loaded as well.
2021-07-15 14:55:16 +08:00
Matteo Scaramuccia
7910fa322a MDL-63770 core: 'port' should be an integer like in parse_url()
Plus trivial comment cleanup.
2021-07-15 11:37:13 +08:00
Simey Lameze
f58750c2a5 MDL-71775 block_calendar_month: add footer options 2021-07-15 10:20:54 +08:00
Eloy Lafuente (stronk7)
43d77b9574 Merge branch 'MDL-71788-master-7' of git://github.com/junpataleta/moodle 2021-07-15 02:58:31 +02:00
Eloy Lafuente (stronk7)
a0ac76505b Merge branch 'MDL-67338' of git://github.com/paulholden/moodle 2021-07-15 00:33:57 +02:00
Paul Holden
bf97f707cd MDL-67338 message: re-implement block page type patterns.
The `page_type_list` method for the message component was deprecated
in 5b0769db as part of MDL-54744. However it is still required when
trying to configure blocks on any messaging pages.
2021-07-14 19:34:13 +01:00