Commit graph

80987 commits

Author SHA1 Message Date
Damyon Wiese
a26d57e414 MDL-55471 javascript: Fix conflict between bootstrapbase and bootstrap4
Part of MDL-55071
2016-09-23 10:49:50 +01:00
Damyon Wiese
13d07a01b0 MDL-55416 theme_noname: Bootstrap alpha3 support
Part of MDL-55071
2016-09-23 10:49:50 +01:00
Frederic Massart
da92b73840 MDL-55416 theme_noname: Fixes for Bootstrap 4 alpha 3
Part of MDL-55071
2016-09-23 10:49:50 +01:00
Frederic Massart
ed7844b5f4 MDL-55224 theme_noname: RTL adjustments for auto-flipping era
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Frederic Massart
1d987cae5f MDL-55224 output: Support automatic flipping to RTL styles
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Frederic Massart
fbe18cc022 MDL-55224 core: Import PHP-CSS-Parser into core
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Frederic Massart
e86eb6b80d MDL-55224 core: Import RTLCSS-PHP into core
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Damyon Wiese
ac4a389eb8 MDL-55414 theme_noname: Update preferences page to template
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Damyon Wiese
3f0544b839 MDL-55413 theme_noname: action-menu conversion
Convert action-menus to templates using bootstrap4 markup.
Includes changes to iconsmall/smallicon.

Part of MDL-55071
2016-09-23 10:49:49 +01:00
Frederic Massart
da4d9eb7be MDL-55412 theme_noname: Render tabs using bootstrap classes
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Frederic Massart
11268ae1c4 MDL-55412 output: Make tabtree and tabobject templatables
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Frederic Massart
65b8336ed3 MDL-55286 theme: Support compiling SCSS on-demand from a theme
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Frederic Massart
321c986c86 MDL-55285 core: Include library scssphp in core
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Damyon Wiese
88af020839 MDL-55411 theme_noname: Style the filepicker for bootstrap 4
Uses templates.

Part of MDL-55071
2016-09-23 10:49:49 +01:00
Damyon Wiese
f130c411d9 MDL-55410 theme_noname: Convert custom menu renderer to render bootstrap4 menus.
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Damyon Wiese
bbe79e0e37 MDL-55409 theme_noname: Add better default button styles
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Damyon Wiese
25f908968c MDL-55408 theme_noname: Add more styles for bootstrap modals
Part of MDL-55071
2016-09-23 10:49:49 +01:00
Damyon Wiese
d7fbf722c7 MDL-55407 theme_noname: Remove styling and JS from blocks
Also:
Remove styles for the dock.
Remove drag and drop for blocks.
Blocks spacing improvements
After looking for a while - the blocks need some separation, so using .card now.
Adjusted the block column sizes as well.

Part of MDL-55071
2016-09-23 10:49:48 +01:00
Damyon Wiese
d2645a6a64 MDL-55403 theme_noname: Add bootstrap4 js to moodle
Part of MDL-55071
2016-09-23 10:49:48 +01:00
Damyon Wiese
536f046033 MDL-55402 theme_noname: Convert bootstrapbase to bs4
All moodle less files are converted to sass with layouts etc
written as mustache templates.

Bootstrap 4 sass files are imported to scss/bootstrap.

Part of MDL-55071
2016-09-23 10:49:48 +01:00
Frederic Massart
3ba0023871 MDL-55401 theme_noname: Scaffolding
Part of MDL-55071
2016-09-23 10:49:48 +01:00
Jun Pataleta
1e7490ad9a MDL-49609 mod_lti: Content-Item message type-related unit tests 2016-09-23 16:29:27 +08:00
Jun Pataleta
6696cdab8f MDL-49609 mod_lti: Content-Item message type-related Behat tests 2016-09-23 16:29:27 +08:00
Jun Pataleta
c1fae2b928 MDL-49609 mod_lti: Refactor content-item and make it work using JS
* Rebase and resolve conflicts from initial patch.
* Reorganise contentitem and contentitem_return pages.
* Add capability checks for contentitem and contentitem_return pages.
* Move the building of Content-Item selection request to a local
  lib function.
* Move contentitem_return processing logic to a local lib function.
* Fix type settings update. Content-item checkbox does not get
  checked/unchecked on load.
* Fix  tool settings update. Disabled content-item checkbox gets unchecked when
  tool settings form is submitted.
* Add "Select content" button on load which launches the content item
  selection dialogue.
* Move hardcoded HTML and JS to mustache templates and AMD modules.
* Use standard YUI dialog for displaying the Content-Item selection page.
* Added processing for the following Content-Item properties:
  - text
  - icon
* On ContentItem selection, fill out form with the configuration data retrieved,
  instead of automatically saving the tool and redirecting to the course page.
* Removed section- and sectionreturn-related code since we're not automatically
  adding the tool on ContentItem selection.
* On mod_lti_mod_form, enable configuration fields if they support ContentItem
  selection.
* New form-field module for setting fields using JS
* Change types_config table's 'value' column from char(255) to text
2016-09-23 16:29:19 +08:00
Eloy Lafuente (stronk7)
26162efe4a weekly release 3.2dev 2016-09-23 10:01:31 +02:00
Eloy Lafuente (stronk7)
54caa85cba Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2016-09-23 10:01:26 +02:00
Cameron Ball
676e5dcdcc
MDL-56072 filelib: Add new groups and extensions.
This patch adds the following groups:

* html_audio: For source files of <audio> tags
* html_video: For source files of <video> tags
* html_track: For source files of <track> tags

It also adds the .vtt extension for track sources, and the flac
extension.
2016-09-23 14:13:48 +08:00
Andrew Nicols
352e65861d Merge branch 'MDL-55327' of https://github.com/stronk7/moodle 2016-09-23 10:00:20 +08:00
Eloy Lafuente (stronk7)
0fba5b440d MDL-55327 mod_lesson: better convert back to plain response_editor 2016-09-22 19:17:47 +02:00
AMOS bot
14145ad5ae Automatically generated installer lang files 2016-09-23 00:04:32 +08:00
Andrew Nicols
dd193ba2ea Merge branch 'wip-MDL-55327-master-fix' of git://github.com/abgreeve/moodle 2016-09-22 15:51:04 +08:00
Andrew Nicols
be16d66087 MDL-55379 phpunit: Coding style fix 2016-09-22 15:11:16 +08:00
Andrew Nicols
a2b48e4127 Merge branch 'wip-mdl-55379-fix2' of https://github.com/rajeshtaneja/moodle 2016-09-22 15:09:43 +08:00
Rajesh Taneja
095883d1ea
MDL-55379 phpunit: Remove directory seperator if present 2016-09-22 12:56:48 +08:00
Damyon Wiese
ecdccb918d MDL-55837 themes: Remove re-setting of user/site/course theme
These themes cannot be chosen, so this part of the upgrade step is not necessary.
2016-09-22 12:34:38 +08:00
David Monllao
791844d25a Merge branch 'wip-mdl-55379-fix' of https://github.com/rajeshtaneja/moodle 2016-09-22 10:59:48 +08:00
Rajesh Taneja
544de35bc3
MDL-55379 phpunit: Preserve config option if passed 2016-09-22 10:45:47 +08:00
Russell Smith
58665ecd62 MDL-39117 cachestore_apcu: Update to APCu
We now use APCu as it's support by PHP7 and provides the
functionality we need.
2016-09-22 11:58:27 +10:00
Simey Lameze
981356b23d MDL-54802 mod_quiz: Add validation to require passing grade greater than 0
This commit adds a form validation to prevent the creation of quizzes
using zero or null grade to pass when using require passing grade.
2016-09-22 08:48:11 +08:00
Andrew Nicols
41ff0ee58b MDL-55982 mod_forum: Allow discussion view in locked blog 2016-09-22 08:22:13 +08:00
Eloy Lafuente (stronk7)
64573a35e9 Merge branch 'MDL-55124' of https://github.com/mr-russ/moodle 2016-09-22 00:52:30 +02:00
Russell Smith
d59f1d3150 MDL-55124 database: Mode connection test to after connection.
To verify the client encoding and other data is correct then
the connection must have been made first.
2016-09-22 08:40:03 +10:00
David Mudrák
8df850ad6f MDL-46946 user: Make missing required custom fields trigger profile edit
If there is a required custom field that the user can fill by editing
their profile, and that field is missing, the user should be considered
as not fully set up. Instead, we want to redirect them to edit their
profile first.

There are some exceptions when we want to fall back to the previous
behaviour and check just the name and email fields. These exceptional
cases include checking remote user data in incoming MNet request (no
user id, no custom fields supported) and calls to require_login() with
redirecting disabled (typically ajax filepicker requests on profile
editing page itself).

Additional plugins that call the function user_not_fully_set_up()
themselves, should perform the strict check in most/typical cases. So
the strict mode is enabled by default even if it changes the behaviour
slightly. In improbable case of additional plugins relying on the
previous behaviour of the function, they can use the $strict parameter
and keep performing the lax check. However, I am sure the correct fix in
that case will likely be to stop abusing this function.

Note that custom fields are not currently transferred during the MNet
roaming. So having custom fields configured as required on MNet service
provider site (where users can't edit their profiles) is expected to
display an error (as the site is considered as misconfigured).
2016-09-21 17:46:30 +02:00
Adrian Greeve
f4eef5fb25 MDL-55327 mod_lesson: Fix for copying essay and match.
Matching and essay questions would display errors when
being duplicated.
2016-09-21 18:04:08 +08:00
Juan Leyva
65e961e4f2 MDL-56045 message_airnotifier: New WS message_airnotifier_enable_device 2016-09-21 10:45:13 +01:00
Juan Leyva
95f53a652a MDL-56045 message_airnotifier: Move enable device code to manager class 2016-09-21 10:44:56 +01:00
Juan Leyva
618cba3494 MDL-56044 message_airnotifier: New WS message_airnotifier_get_user_devices 2016-09-21 09:47:26 +01:00
Dan Poltawski
948e6e3fca MDL-48766 lib: fix another stupid case sensitivity issue 2016-09-21 09:31:54 +01:00
Damyon Wiese
a8225336d9 MDL-56052 block_settings: race condition
YUI events module must be loaded before global events can be used.
2016-09-21 12:21:39 +08:00
Eloy Lafuente (stronk7)
6cc077e90f Merge branch 'MDL-55982-master' of git://github.com/andrewnicols/moodle 2016-09-21 03:04:36 +02:00