Commit graph

5076 commits

Author SHA1 Message Date
Dan Poltawski
5ad34c43f6 Merge branch 'MDL-56597-master' of git://github.com/damyon/moodle 2016-10-31 15:10:02 +00:00
Dan Poltawski
0e86392133 Merge branch 'MDL-56578-master' of git://github.com/damyon/moodle 2016-10-31 15:04:55 +00:00
Damyon Wiese
155b0bc0b9 MDL-56578 theme_boost: Dismiss help popovers on next click 2016-10-31 22:01:19 +08:00
Damyon Wiese
2259c0f078 MDL-56621 templates: Add missing example contexts 2016-10-31 21:27:52 +08:00
Dan Poltawski
b0f7a97c42 Merge branch 'MDL-56610-master' of git://github.com/damyon/moodle 2016-10-31 10:20:08 +00:00
Dan Poltawski
f7614c6007 Merge branch 'MDL-56523-master' of git://github.com/lazydaisy/moodle 2016-10-31 10:19:13 +00:00
Dan Poltawski
703863ce82 Merge branch 'MDL-56599-master' of git://github.com/damyon/moodle 2016-10-31 09:57:03 +00:00
Dan Poltawski
75de2e6199 Merge branch 'MDL-56631-master' of git://github.com/damyon/moodle 2016-10-31 09:10:06 +00:00
Damyon Wiese
a2d9a89f5a MDL-56149 permissions: Alignment of icons should not wrap
/admin/roles/permissions.php?contextid=2 the icons should not wrap.
2016-10-31 16:24:11 +08:00
Damyon Wiese
6fb8a7ab7e MDL-56621 forms: Hide format menu if only one
This was a regression in the new templates for editors.
2016-10-31 15:06:50 +08:00
Damyon Wiese
ad785e699e MDL-56631 passwordunmask: Admin setting for password unmask not working
Andrew refactored the way it rendered the element, but did not update all the
templates (there is mforms element AND admin settings element).

See 3778a9226f for Andrews original change.
2016-10-31 14:45:07 +08:00
Andrew Nicols
de32120676 Merge branch 'MDL-56577-master' of git://github.com/junpataleta/moodle 2016-10-31 14:02:27 +08:00
Jun Pataleta
6af2ccda91 MDL-56577 core_form: Let other option attrs to be set in select elements 2016-10-31 12:19:21 +08:00
Andrew Nicols
43dadab50b Merge branch 'MDL-56078-master' of git://github.com/damyon/moodle 2016-10-31 09:30:15 +08:00
Marina Glancy
c05be214aa MDL-56633 theme_boost: activity label should not be centered 2016-10-28 15:20:47 +08:00
Simey Lameze
fd5797aa3b MDL-55799 inplace_editable: add form-control class to fields 2016-10-28 15:04:54 +08:00
Simey Lameze
823ae9f062 MDL-56155 theme_boost: fix wrong padding on inline field help text
Thanks John Okely!
2016-10-28 14:45:28 +08:00
Damyon Wiese
4821f45961 MDL-56188 theme_boost: Better alignment for form fields help 2016-10-28 14:40:00 +08:00
Damyon Wiese
58488d0ff0 MDL-56462 boost: Fix assign grading options form
Classes attribute was not being honoured by all form element templates.
Formchangechecker was only looking for the ignoredirty class on the element,
in boost it is on the container.
Assign had specific styles to hide the submit buttons that were not matching in boost.
2016-10-28 12:24:50 +08:00
Jun Pataleta
5306a00ab0 MDL-56580 core_form: Unescape select attributes 2016-10-28 12:02:06 +08:00
Damyon Wiese
70f0010712 MDL-56627 theme_boost: Move help buttons outside labels
For radios and checkboxes where clicking on the label would toggle the state.
2016-10-28 11:04:28 +08:00
lazydaisy
808955143e MDL-56469 theme_boost: reduce section activity indent when not editing. 2016-10-27 15:22:23 +01:00
lazydaisy
13a8c3d89b MDL-56523 theme_boost: Removed region-main-box in maintenance.mustache 2016-10-27 15:18:58 +01:00
Eloy Lafuente (stronk7)
6a17bdec92 Merge branch 'MDL-56594-master' of git://github.com/damyon/moodle 2016-10-27 10:47:51 +02:00
Damyon Wiese
7744f89275 MDL-56296 theme_boost: Do not hide server-side validation errors
When the client side validation passes - do not hide errors that were not
generated by client side validation.
2016-10-27 15:51:56 +08:00
Damyon Wiese
9629c86f6c MDL-56433 theme_boost: Fix styling for autocompletes
This is for when the autocomplete is used outside of an mform - the drop down arrow was misaligned because
of conflicts with the bootstrap form-control class.
2016-10-27 15:23:50 +08:00
Kenneth Hendricks
e47c002c75 MDL-29795 assign: Tweak user-info section in grader view
- also mirror due date removal in boost template
2016-10-27 17:09:58 +11:00
Damyon Wiese
b7d127aa93 MDL-55732 theme_boost: Add separator logic to group templates 2016-10-27 11:05:08 +08:00
Frédéric Massart
b24212515c MDL-55732 theme_boost: Export elements separator in groups 2016-10-27 10:54:02 +08:00
Frédéric Massart
4b021492d6 MDL-55732 theme_boost: Bulk user actions form adjustments
- The 'add' and 'remove' buttons consistently wrap on two lines
- Multiple select fields use the size attribute to set the options seen
2016-10-27 10:54:02 +08:00
Damyon Wiese
bff9fd896a MDL-56597 theme_boost: Maintenance warning styles 2016-10-27 10:41:42 +08:00
Damyon Wiese
f1f6d80e69 MDL-56610 theme_boost: White background on the maintenance pages 2016-10-27 09:39:39 +08:00
lazydaisy
8b590de0b7 MDL-56523 theme_boost: Removed region-main-box in maintenance.mustache 2016-10-27 09:32:19 +08:00
Damyon Wiese
58473a6776 MDL-56015 theme_boost: change theme preview screenshot 2016-10-27 09:20:35 +08:00
Eloy Lafuente (stronk7)
6f01090159 Merge branch 'MDL-56448-master' of git://github.com/danpoltawski/moodle 2016-10-26 16:11:44 +02:00
Dan Poltawski
f07cb88c57 MDL-56448 mustache: fix json errors in example context 2016-10-26 12:35:45 +01:00
Dan Poltawski
2300b95dbf Merge branch 'MDL-56184-master-master' of git://github.com/damyon/moodle 2016-10-26 12:11:56 +01:00
Damyon Wiese
11774d9014 MDL-56599 theme_boost: Move region settings menu out of content div
This is because the content div has it's own rules for scrolling and overflow,
and they don't work well with the action menu for the region.
2016-10-26 16:46:29 +08:00
Damyon Wiese
76132d1eb9 MDL-56078 theme_boost: Preset settings for release
Allow user uploaded preset files and remove the bootswatch based existing presets.
2016-10-26 15:27:43 +08:00
David Monllao
01435b4ebd Merge branch 'MDL-53048-master-fix' of git://github.com/andrewnicols/moodle 2016-10-26 15:11:27 +08:00
Frédéric Massart
a4a6d85b5b MDL-56184 theme_boost: Constrain inline form elements to form width 2016-10-26 15:06:59 +08:00
Andrew Nicols
3778a9226f MDL-53048 core_form: passwordunmask must exist on page for validation
The initial approach I took was to provide a noscript area containing the
standard input element, and to move it to a hidden input element as part of
the passwordunmask setup.

This allowed behat tests to pass both with and without JS enabled (i.e.
with Goutte and real browsers), and also ensured that the real input did
not appear on screen.

However, the standard formslib validation occurs before other page JS is
run and hooks into the elements on page during its setup.
Since noscript elements are not accessible to scripts as standard elements,
the form validation would fail for _client_ side validation and work for
server-side validation.

This change creates creates the hidden input element in the template
instead, as well as the password element in the noscript tag.

Doing this means that when JS is disabled, the form has two elements of the
same name - one hidden, and the second a visible password field.
Since the latter element will always override the former one on form
submission, and the noscript variant is last, the noscript variant wins
when JS is disabled and tests continue to pass.

When JS is enabled, the noscript variant is not a valid part of the DOM
(the browser sees it as a hidden text field essentially). The password is
not automatically entered into the hidden field, so the autocomplete
prevention continues to work as expected.
2016-10-26 13:33:10 +08:00
Damyon Wiese
181179de54
MDL-55074 message: Display modal window in message, BS2 compatible 2016-10-26 10:24:20 +08:00
Damyon Wiese
9de8c56136 MDL-56594 theme_boost: The template for checkboxes has a nesting error
This throws and exception which is caught - and the renderer fall back to the
legacy HTML for the element.
2016-10-26 08:19:41 +08:00
Helen Foster
c9636ddd51 MDL-56542 lang: Merge English strings from the en_fix language pack 2016-10-25 20:12:52 +02:00
Eloy Lafuente (stronk7)
c52cc59877 Merge branch 'MDL-54781_master' of git://github.com/markn86/moodle 2016-10-25 19:37:11 +02:00
Dan Poltawski
c435523ac5 Merge branch 'MDL-56468-master' of git://github.com/andrewnicols/moodle 2016-10-25 08:11:05 +01:00
David Monllao
bf91437d25 Merge branch 'wip-mdl-55074' of https://github.com/rajeshtaneja/moodle 2016-10-25 15:09:24 +08:00
David Monllao
1d58c301c7 Merge branch 'MDL-56156-master' of git://github.com/damyon/moodle 2016-10-25 15:05:17 +08:00
Andrew Nicols
b146ff9451 MDL-56004 theme_bootstrapbase: Rebuild less 2016-10-25 14:24:32 +08:00