{{! This file is part of Moodle - http://moodle.org/ Moodle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Moodle is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Moodle. If not, see . }} {{! @template mod_lti/tool_proxy_registration_form This template provides the registration form to submit an external LTI registration. Classes required for JS: * none Data attributes required for JS: * none Context variables required for this template: * }}
{{> mod_lti/loader }}

{{#str}} loadinghelp, moodle {{/str}}

{{#js}} require(['jquery'], function($) { var loadingContainer = $('#tool-proxy-registration-form-container .registration-loading-container'); var iframe = $('#registration-page-iframe'); var timeout = setTimeout(function () { var failedContainer = $('#registration-loading-failed'); failedContainer.removeClass('hidden'); }, 20000); iframe.on('load', function() { loadingContainer.addClass('hidden'); iframe.removeClass('hidden'); }); }); {{/js}}