Commit graph

1491 commits

Author SHA1 Message Date
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
Rajesh Taneja
c99dffb69c
MDL-55074 behat: Fixed new theme related changes 2016-10-25 13:48:51 +08:00
Damyon Wiese
0862719092 MDL-56004 theme: Add some BS2 compatibility to BS4.
This is for user-created texts (e.g. the people have used the generico filter to inject BS2 markup into user tests).

It is also for existing old HTML that we have not had time to upgrade yet.
2016-10-25 13:36:23 +08:00
Damyon Wiese
976b635d7b MDL-56015 theme_boost: Clean up pix folder
Add real screenshot of new theme and delete unused images and icons.
2016-10-25 10:09:07 +08:00
Frédéric Massart
17553c6350 MDL-56213 theme_boost: Visual inconsistencies in backup/restore
* Some additional SCSS rules were added to be more visually pleasing
* Javascript had to be tweaked as targets were too specific
2016-10-24 10:29:38 +01:00
Andrew Nicols
33492029de Merge branch 'MDL-56321-master' of git://github.com/damyon/moodle 2016-10-24 13:29:31 +08:00
David Monllao
0c6cf86925 MDL-55074 theme_boost: Deleting old file 2016-10-24 13:11:38 +08:00
David Monllao
947970fc49 MDL-55074 boost: Fixing issues reported by stylelint 2016-10-24 12:40:40 +08:00
David Monllao
48f43096e0 Merge branch 'MDL-55074-master' of git://github.com/damyon/moodle 2016-10-24 12:33:51 +08:00
Damyon Wiese
df25a884e8 MDL-56321 theme_boost: Remove extra styling from context_header 2016-10-24 12:11:13 +08:00
Frédéric Massart
e9a009dcd6 MDL-56321 theme_boost: Profile page adjustments
- Removed the border overlapping a user's avatar. This only affected
  course profiles and the default preset.
- Do not break the sections when they wrap from one column to another
- Sneaked in a change to remove left/right padding on .box. I've been
  wanting to change that since I added it. The padding on top and bottom
  is sometimes useful to separate boxes, but the left/right padding
  should be applied by the general structure.
2016-10-24 12:11:12 +08:00
David Monllao
8f68e0343a Merge branch 'MDL-53048-master' of git://github.com/andrewnicols/moodle 2016-10-24 11:12:25 +08:00
Damyon Wiese
3f1fa45771 MDL-55074 theme_boost: Phantomjs robustness
Raj was seeing some fails with phantomjs because the action menus were not open after clicking
on the link to open them. Make sure we look for the open menu before continuing.
2016-10-24 10:38:43 +08:00
David Monllao
055cc7d037 Merge branch 'MDL-56252-master' of git://github.com/ryanwyllie/moodle 2016-10-24 10:25:32 +08:00
Andrew Nicols
ca25005c69 MDL-53048 form: Rewrite passwordunmask
This version:
* should work with the Behat Goutte driver
* should not suffer from password autofill anxiety
* should allow unmasking (and masking) of a password
* should allow editing of passwords in either masked, or unmasked form

AMOS BEGIN
 MOV [revealpassword,core_form],[passwordunmaskrevealhint,core_form]
AMOS END
2016-10-24 09:24:39 +08:00
Andrew Nicols
ac157b0bbe MDL-53048 forms: Deprecate prevent_form_autofill_password 2016-10-24 08:19:44 +08:00
Damyon Wiese
ba5c5083c5 MDL-55074 theme_boost: Behat fixes for latest theme changes
Fix I edit profile steps
Apply fixed header in css
Remove transitions from menus for behat
Be more specific about some "I follow" steps
Navigation path changes
"Current course" node removed from nav tree
Adapt tests because there are no default blocks
Force some space between action menu items
2016-10-21 16:06:54 +08:00
Frédéric Massart
c9c1e4baf6 MDL-56272 theme_boost: Differentiate between freeze and hardFreeze 2016-10-21 12:41:33 +08:00
Damyon Wiese
6e79ea5846 MDL-55074 theme_boost: Styling for grade reports 2016-10-21 12:40:06 +08:00
Damyon Wiese
c6d9d29da1 MDL-55074 theme_boost: Improve the display of the menus in the footer 2016-10-21 12:40:06 +08:00
Damyon Wiese
d430a7c336 MDL-55074 navigation: Menu and nav changes
"Grades" belongs in the navigation block, not the settings block.
Course / Activity menus should not include a link to the full settings page list, if it is the same as the menu.
Competencies belongs in the navigation block not the settings block.
2016-10-21 12:40:05 +08:00
Damyon Wiese
70fda55e85 MDL-55074 theme_boost: Make dropdowns consistent
Links in drop down menu items should fill the entire row and be
displayed as normal text color (they are like buttons).
2016-10-21 12:40:05 +08:00
Damyon Wiese
b45fdc6838 MDL-55074 theme_boost: Move the custom menu into the footer
On mobile screen sizes only.
2016-10-21 12:40:05 +08:00
Damyon Wiese
7f20e8e7cb MDL-55074 theme_boost: Custom renderer fails on book
Handle nav tree nodes with action_links in them.
2016-10-21 12:40:05 +08:00
Damyon Wiese
fe009bdeaa MDL-55074 theme_boost: Workaround for popovers
The custom-interaction events have a bug where if they are used twice, they fire 2 events.

The bug still exists - this is a workaround.
2016-10-21 12:40:05 +08:00
Damyon Wiese
6afd1c60c0 MDL-55074 theme_boost: Fix weird text wrapping in block titles 2016-10-21 12:40:05 +08:00
Damyon Wiese
e85d09635d MDL-55074 theme_boost: Rename default only block region 2016-10-21 12:40:05 +08:00
Damyon Wiese
a42a065a20 MDL-55074 theme_boost: Do not show flatnav by default before login 2016-10-21 12:37:33 +08:00
Damyon Wiese
cbdbe7d812 MDL-55074 theme_boost: Current flat nav node should be subtle 2016-10-21 12:37:33 +08:00