370 Commits

Author SHA1 Message Date
Dan Poltawski
3fd840072f MDL-56988 report: attempt to improve styling of reports 2016-11-23 08:50:06 +08:00
Damyon Wiese
f2405a5f5c MDL-56242 theme_boost: Fix styling for confirm boxes (js and in page)
They should be left aligned with a header, content and footer (right aligned with the buttons).

There should be a primary continue button and a secondary cancel button.
2016-11-14 11:11:28 +08:00
Damyon Wiese
99061152af MDL-55074 theme_boost: Navigation and blocks
This patch includes a big set of changes that are all designed to work together to provide
a better way to navigate in the new theme, and a different way of working with blocks.

Blocks have been moved to a "drawer" that can be opened and closed (this is remembered in a user pref).

A new "flat navigation" element is also available in a drawer - which should let you do 90% of things
without needing to open the "blocks" drawer.

The flat navigation is build from specific parts of the nav tree - the top nodes like "calendar, dashboard" are
hand picked. There is a mycourses node listing your enrolled courses.

There is a node for the current course, built from the top nodes in the current course node in the nav tree.

Administrators have a link to the Site admin settings here too.

These nav elements are used by the templates for the new theme, which also has a resigned layout for login and signup.

There have also been some additional fixes / improvements to the scss for the new theme which goes along with these
layout changes.

This set of changes is a collaboration between Martin, Damyon and Alberto (thanks!).
2016-10-21 12:37:33 +08:00
Dan Poltawski
c8303131be Merge branch 'MDL-54682_master' of git://github.com/markn86/moodle 2016-10-11 12:53:11 +01:00
Frédéric Massart
fc72f49da3 MDL-56095 output: Moving progress_bar from weblib to outputcomponents
And revert the change in the order of the require_once in setup.php.
2016-10-10 13:25:37 +02:00
Ryan Wyllie
12d8c7b222 MDL-54700 message: added toggle contact button to user profile 2016-10-07 16:20:51 +08:00
Frederic Massart
370e7637c6 MDL-55904 output: Deprecate action_menu::do_not_enhance()
Part of MDL-55071
2016-09-23 10:55:17 +01:00
Damyon Wiese
63e4df60f6 MDL-55839 behat: Behat fixes for theme_noname
This is a squash of many small fixes.
The list of changes are:

Initial set of behat selectors overrides required for new theme.

set core behat selectors if not overridden by theme

Remove pause

Fix for checkboxes not saving properly

Custom override for click in the user menu

Fix for behat guessing the field type.

Behat fix for guessing the correct field type.

Fix for missing closeElementBefore mforms mess.

Fix for textareas not displaying their contents.

Fix availability form element

Fix action menu selectors for activities in a course page

Fix textareas not retaining their values

Fix selector for blocks

I had to change the single select template to use an input instead of a button because of a
behat bug we have not tracked down yet.

Fix for frozen attribute in form elements

Use input instead of button while behat is still broken

Fix for navigation selector override

Behat selector fixes and multi-select fixes for templated select

Fix for configure blocks selector + booleans for autocomplete

Fixes for course_summary behat tests

Allow optgroups in single_select

Behat fixes for block_navigation

Fixes for url form element and activity chooser selectors

blocks_social - fix specific selector for behat

Fix export_for_template for selectgroups element.

Dont set empty id on the form

Fix direct call to behat_navigation in backup context

Checkbox empty value fix

Fix for assign grading panel popouts

file picker overrides to find a file manager in the page

Fix chat tests to use element name

Make selectors in mod_data behat less specific

MDL-55839: recent activity behat test relies on time()

SQUASH Honour mform element "class" attribute on the container

SQUASH Fixes for behat in mod_forum

SQUASH search form template showing value as text next to the button

SQUASH undo double selectgroup fix

SQUASH - The slightly different structure to action menus breaks course drag and drop

SQUASH Wrap loading icon in a span so the selector still works.

SQUASH Fix fragile javascript in report_loglive

SQUASH Fix tabtree, and selectgroups for mod_feedback

Also - do-not enhance the action menu - we are dropping support for this.

SQUASH Fix filemanager selector and pix_icon template for mod_forum tests.

SQUASH Fixes to breadcrumb and add formid to single select (fixes mod_glossary tests)

SQUASH lesson behat fixes. 95% of lesson styles were rubbish so they were disgarded.

SQUASH Fix lti behat tests - they were cheating and using a context step from quiz

SQUASH Behat fixes for quiz with new theme

SQUASH behat fixes for mod_wiki

SQUASH Workshop behat fixes

SQUASH Frozen form elements cannot use a readonly form element because it screws with the form JS "disabledIf" stuff.

SQUASH Fixes for grades behat tests

SQUASH behat fixes for groups

SQUASH blacklist action menu tests

SQUASH Fix for tag form element missing "manage standard tags" link

SQUASH Incomplete fixes for course behat tests

SQUASH behat fixes for badges

SQUASH Tags fixes for behat

SQUASH filepicker fixes for behat

SQUASH Abort guessing field type when we hit 'html'

SQUASH Fix for admin/tool/behat tests

SQUASH fix for admin tool behat tests

SQUASH fix for availabilty conditions hiding "aria-hidden" elements

SQUASH give the blocks more room. We get behat files because nav tree nodes are not in view

SQUASH Blocks fixed

Fix behaviour of unchecked checkboxes

SQUASH Remove incorrect step in user test

SQUASH behat fixes for course tests

Part of MDL-55071
2016-09-23 10:55:16 +01:00
Frederic Massart
f15024c18e MDL-55831 output: Convert action menu to templates
Part of MDL-55071
2016-09-23 10:55:16 +01:00
Frederic Massart
11ba3fd4c1 MDL-55831 output: Convert action_link to template
Part of MDL-55071
2016-09-23 10:55:16 +01:00
Frederic Massart
ee9dd6a278 MDL-55796 core: Do not escape pix_icon URLs
Part of MDL-55071
2016-09-23 10:55:15 +01:00
Frederic Massart
14395f9789 MDL-55594 output: Adding template for html_writer::select_time
Part of MDL-55071
2016-09-23 10:53:56 +01:00
Frederic Massart
a84eadb88e MDL-55701 output: Adding core template for help_icon
We didn't intend to do this, but as I made the mistake of extending
core/help_icon in a core template without realising that it
works solely because I had that template in the new theme, I
decided to add this template to core too.

Part of MDL-55071
2016-09-23 10:53:56 +01:00
Andrew Nicols
ecfad63d28 MDL-55696 output: Correct handling of url_select nothingvalue
Part of MDL-55071
2016-09-23 10:53:56 +01:00
Frederic Massart
58357d41af MDL-55564 output: Single select label wasn't translated
Part of MDL-55071
2016-09-23 10:53:56 +01:00
Frederic Massart
d7c657528a MDL-55479 output: Single button uses templates
Part of MDL-55071
2016-09-23 10:53:29 +01:00
Frederic Massart
f1b34660ed MDL-55495 output: Make url_select a templatable
Part of MDL-55071
2016-09-23 10:53:29 +01:00
Frederic Massart
b0da86e03b MDL-55496 output: Make paging_bar a templatable
Part of MDL-55071
2016-09-23 10:53:29 +01:00
Frederic Massart
bf7f35e945 MDL-55463 output: Make single select a templatable
Part of MDL-55071
2016-09-23 10:53:29 +01:00
Damyon Wiese
b7e95263fd MDL-55462 output: Make help_icon templatable
Render it with a template in the new theme.

Part of MDL-55071
2016-09-23 10:49:50 +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
11268ae1c4 MDL-55412 output: Make tabtree and tabobject templatables
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
Cameron Ball
b31bbcf839 MDL-52388 output: Only stop displaying pager next link on last page
Thank you to Brenda Uga for working on this.
2016-03-24 16:56:30 +08:00
Shamim Rezaie
2bb196ebe3 MDL-52354 select_time: Make select_time respect the set calendar type
The select_time method updated to display form elements in accordance
to the calendar type plugin that is in use.
2015-12-17 15:48:27 -06:00
Eric Merrill
0e55333a86 MDL-51501 themes: pix_icon should not include empty alt tags 2015-09-22 17:20:37 -04:00
Dave Cooper
eb42bb7e83 MDL-50084 pix: Updated pix to use the templatable interface 2015-05-04 15:56:45 +08:00
Simey Lameze
e35bac3e80 MDL-49854 core: User navigation refinements
Fixing some reported issues:
- Removing unnecessary conditional include
- Require login in grade/report/mygrades.php
- Remove unnecessary defined('MOODLE_INTERNAL') call
- Fixing context_header::__construct $imagedata param type
2015-04-21 11:46:32 +08:00
Adrian Greeve
3b927d357b MDL-45896 navigation: CSS and renderer improvements.
Part of MDL-45774.
2015-04-10 17:17:06 +08:00
Adrian Greeve
261bdb24d9 MDL-45896 navigation: Created a user context header.
Part of MDL-45774
2015-04-10 17:17:06 +08:00
Frederic Massart
0e8418a8de MDL-45895 user: Scaffold of the new preferences page
Part of MDL-45774
2015-04-10 17:17:06 +08:00
Damyon Wiese
9bdcf57951 MDL-49152 output: Templates for renderers (JS and PHP)
Mustache support for rendering templates from either php or js.
2015-03-14 22:48:40 +08:00
Jetha Chan
3451a51cdf MDL-37477 output: Add support for table captions
Conflicts:
	lib/upgrade.txt
	theme/bootstrapbase/style/moodle.css
2015-02-10 16:15:49 +08:00
Dan Poltawski
80f8372926 Revert "Merge branch 'MDL-37477-master' of git://github.com/jethac/moodle"
This reverts commit f13e8ad04168574574d5be2995502d849109d3f9, reversing
changes made to c6bcbad07a7fd437991ee7a2a1a98973949fac43.
2015-02-05 08:07:29 +00:00
Jetha Chan
49faeef6bb MDL-37477 output: Add support for table captions 2015-02-03 13:38:24 +08:00
Dan Poltawski
f5360dd16b Merge branch 'MDL-43902-master' of git://github.com/FMCorz/moodle 2014-12-16 18:52:40 +00:00
Sam Hemelryk
16dfee4e5b MDL-48430 customment: improved exception handling 2014-12-10 13:24:39 +01:00
Frederic Massart
ba55be9151 MDL-43902 output: Final deprecation of classes r0/r1 in table rows 2014-12-09 14:52:30 +08:00
pau.ferrer-ocana
8e371539f4 MDL-48430 custom_menu: Malformed url in custom menu cannot break the platform 2014-12-01 10:50:26 +01:00
Sam Hemelryk
a2a9468f01 MDL-48026 output: action_menu no wrap improvement
Action menu output component has a new method set_nowrap_on_items
that sets a property to toggle nowrap on menu items.
That can be used to avoid problems when the menu appears within
an absolutely positioned or floated element.
2014-11-03 13:34:02 +13:00
Tony Butler
1e31f11852 MDL-28484 core_lib: Add function for https detection
Signed-off-by: Tony Butler <tonyjbutler@gmail.com>
2014-10-03 13:02:29 +01:00
PJ King
62ffeb4f0c MDL-46652 custom_menu: fix for multi-language support breaks menu nesting
Fixed bug by building full menu structure, then removing hidden menu items and all associated children.
Refactored custom_menu_item class and convert_text_to_menu_nodes() to improve maintenance.
2014-09-15 15:04:46 +08:00
Andrew Nicols
7dfaa3aede MDL-46772 core: html_writer::table should respect tr attributes 2014-08-14 12:06:31 +08:00
Brian Barnes
1c77e2aafa MDL-46625 theme: Added a way to target the current page 2014-07-31 13:27:14 +12:00
Jetha Chan
e4a1efcbaa MDL-46285 core_renderers: optionally hide user_picture from screen readers 2014-07-14 21:01:29 +08:00
Daniel Neis Araujo
db282ba4fe MDL-45245 html_writer::select_time does not respect 5th parameter "attributes" 2014-06-10 14:19:04 +08:00
Damyon Wiese
f68e555684 Merge branch 'MDL-39337' of git://github.com/apsdehal/moodle 2014-02-18 15:37:49 +08:00
apsdehal
7b218e86ab MDL-39337 html_writer: Added img() function
img function has been added to the html_writer.
use it by calling the function as shown:
html_writer::img('foo.com','Foo',array('title'=>'Foo2'));
This will result in the following string:
<img src="foo.com" alt="Foo" title="Foo2"/>
2014-02-12 01:03:02 +05:30
Ankit Agarwal
6b21643236 MDL-43804 themes: Update css not to use r0 and r1 identifiers for table rows 2014-02-03 14:29:39 +08:00
Andrew Nicols
21231f4d76 MDL-40975 ActionMenu: Convert text-based icon to the caret style 2013-11-06 11:40:59 +08:00