MDL-59365 enrol_manual: Rewrite the yui enrolment popup in amd
authorDamyon Wiese <damyon@moodle.com>
Thu, 20 Oct 2016 09:13:49 +0000 (17:13 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 11 Jul 2017 12:47:26 +0000 (13:47 +0100)
commita60e8ba51ed4ec59954a17ba20477a02bcda9377
tree82527dcc53d8ddb33e391172c6bead26be4cb0c9
parentbdf31b0919ad7e4463c93db4ea52b6c467b678a9
MDL-59365 enrol_manual: Rewrite the yui enrolment popup in amd

The add/roles thing was only converted to bootstrap 2/4 markup and the yui left in place.

The modal for adding users to a course was unsavable so I rewrote it with an mform in a popup, still calling
the same (barely) modified ajax script.

The webservice for searching cohorts was taken from admin/tool/lp and moved into /cohort. I added a generic "cohort"
mform element at the same time.

The webservice for searching for users was taken from the original ajax script.
33 files changed:
admin/tool/lp/classes/external.php
admin/tool/lp/db/services.php
admin/tool/lp/tests/externallib_test.php
admin/tool/lp/version.php
cohort/externallib.php
cohort/lib.php
cohort/tests/externallib_test.php
enrol/externallib.php
enrol/manual/ajax.php
enrol/manual/amd/build/form-potential-user-selector.min.js [new file with mode: 0644]
enrol/manual/amd/build/quickenrolment.min.js [new file with mode: 0644]
enrol/manual/amd/src/form-potential-user-selector.js [new file with mode: 0644]
enrol/manual/amd/src/quickenrolment.js [new file with mode: 0644]
enrol/manual/classes/enrol_users_form.php [new file with mode: 0644]
enrol/manual/lang/en/enrol_manual.php
enrol/manual/lib.php
enrol/manual/templates/enrol_modal_footer.mustache [new file with mode: 0644]
enrol/manual/templates/form-user-selector-suggestion.mustache [new file with mode: 0644]
enrol/manual/yui/quickenrolment/assets/skins/sam/quickenrolment.css [deleted file]
enrol/manual/yui/quickenrolment/assets/skins/sam/sprite.png [deleted file]
enrol/manual/yui/quickenrolment/quickenrolment.js [deleted file]
enrol/tests/behat/behat_enrol.php
enrol/yui/rolemanager/assets/skins/sam/rolemanager.css [deleted file]
enrol/yui/rolemanager/assets/skins/sam/sprite.png [deleted file]
lib/amd/build/form-cohort-selector.min.js [new file with mode: 0644]
lib/amd/src/form-cohort-selector.js [new file with mode: 0644]
lib/db/services.php
lib/externallib.php
lib/form/cohort.php [new file with mode: 0644]
lib/formslib.php
lib/templates/form_autocomplete_selection.mustache
theme/boost/templates/core/form_autocomplete_selection.mustache
version.php