diff --git a/theme/boost/templates/core/login.mustache b/theme/boost/templates/core/login.mustache index eb50c468c0a..8f3a2173b07 100644 --- a/theme/boost/templates/core/login.mustache +++ b/theme/boost/templates/core/login.mustache @@ -18,6 +18,79 @@ @template core/login Moodle template for the login page. + + Context variables required for this template: + * autofocusform: Auto focus on form ?, + * canloginasguest - Is guest login allowed?, + * canloginbyemail - Is login by email allowed?, + * cansignup - Signup allowed?, + * cookieshelpicon - cookies help icon details + * error - Any errors in the form?, + * forgotpasswordurl - Forgot password url, + * hasidentityproviders - Flag, set to true to hide identity providers, + * hasinstructions - Flag, set to true to show instructions, + * identityproviders - List of identiy providers, + * instructions - Instructions, + * instructionsformat - Format of instructions, + * loginurl - Login url, + * rememberusername - Remeber username?, + * passwordautocomplete - Allow password autocomplete?, + * signupurl - Signup url, + * cookieshelpiconformatted - Formatted html of cookies help icon, + * errorformatted - Formatted error, + * logourl - Flag, logo url, + * sitename - Name of site. + + Example context (json): + { + "autofocusform": false, + "canloginasguest": "1", + "canloginbyemail": false, + "cansignup": true, + "cookieshelpicon": { + "heading": "Cookies must be enabled in your browser", + "text": "