Commit 72542c45 authored by Hugh Davenport's avatar Hugh Davenport
Browse files

Add divs around login form



Add a div around the general login form, and also around the
SSO links.

Change-Id: If26ebd58657ce020fa03fe44e1d18849d33a32d2
Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
parent 8e7edf82
......@@ -1041,6 +1041,7 @@ function auth_get_login_form() {
'value' => get_string('login')
),
'register' => array(
'type' => 'markup',
'value' => '<div id="login-helplinks">' . '<a href="' . get_config('wwwroot') . 'forgotpass.php" tabindex="2">' . get_string('lostusernamepassword') . '</a></div>'
),
'login_submitted' => array(
......@@ -1048,6 +1049,12 @@ function auth_get_login_form() {
'value' => 1
),
);
$elements = array(
'login' => array(
'type' => 'container',
'elements' => $elements
)
);
// Get any extra elements from the enabled auth plugins
......@@ -1064,6 +1071,13 @@ function auth_get_login_form() {
$showbasicform = true;
}
}
$extraelements = array(
'login_extra' => array(
'type' => 'container',
'class' => 'login_extra',
'elements' => $extraelements
)
);
// Replace or supplement the standard login form elements
if ($showbasicform) {
......@@ -1747,10 +1761,19 @@ function auth_generate_login_form() {
'value' => get_string('login')
),
'register' => array(
'type' => 'markup',
'value' => '<div id="login-helplinks">' . $registerlink
. '<a href="' . get_config('wwwroot') . 'forgotpass.php" tabindex="2">' . get_string('lostusernamepassword') . '</a></div>'
),
);
$elements = array(
'login' => array(
'type' => 'container',
'class' => 'login',
'elements' => $elements
)
);
// Get any extra elements from the enabled auth plugins
$extraelements = array();
......@@ -1766,6 +1789,13 @@ function auth_generate_login_form() {
$showbasicform = true;
}
}
$extraelements = array(
'login_extra' => array(
'type' => 'container',
'class' => 'login_extra',
'elements' => $extraelements
)
);
// Replace or supplement the standard login form elements
if ($showbasicform) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment