Commit 449afcdf authored by Kristina Hoeppner's avatar Kristina Hoeppner

User edit screen: Switch to switchboxes (Bug 1431569)

The spacing for the help icons and where the options
are too close to each other will be dealt with during
the CSS review.

Change-Id: I6cce57e2ce3b482859f175880d8b506b95ce74c8
Signed-off-by: Kristina Hoeppner's avatarKristina D.C. Hoeppner <kristina@catalyst.net.nz>
parent 586fdcd6
......@@ -68,7 +68,7 @@ if (method_exists($authobj, 'change_password')) {
);
$elements['passwordchange'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('forcepasswordchange','admin'),
'description' => get_string('forcepasswordchangedescription','admin'),
'defaultvalue' => $user->passwordchange,
......@@ -76,20 +76,20 @@ if (method_exists($authobj, 'change_password')) {
}
if ($USER->get('admin')) {
$elements['staff'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('sitestaff','admin'),
'defaultvalue' => $user->staff,
'help' => true,
);
$elements['admin'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('siteadmin','admin'),
'defaultvalue' => $user->admin,
'help' => true,
);
}
$elements['maildisabled'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'defaultvalue' => get_account_preference($user->id, 'maildisabled'),
'title' => get_string('disableemail', 'admin'),
'help' => true,
......@@ -702,14 +702,14 @@ foreach ($institutions as $i) {
'defaultvalue' => $i->studentid,
),
$i->institution.'_staff' => array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('institutionstaff','admin'),
'defaultvalue' => $i->staff,
),
$i->institution.'_admin' => array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('institutionadmin','admin'),
'description' => get_string('institutionadmindescription','admin'),
'description' => get_string('institutionadmindescription1','admin'),
'defaultvalue' => $i->admin,
),
$i->institution.'_submit' => array(
......
......@@ -920,9 +920,9 @@ $string['institutionsettingsdescription'] = 'Here you can change settings regard
$string['changeinstitution'] = 'Change institution';
$string['institutionstaff'] = 'Institution staff';
$string['institutionadmins'] = 'Institution administrators';
$string['institutionadmin'] = 'Institution admin';
$string['institutionadmin'] = 'Institution administrator';
$string['institutionadministrator'] = 'Institution administrator';
$string['institutionadmindescription'] = 'If checked, the user can administer all users in this institution.';
$string['institutionadmindescription1'] = 'Allow the user to administer all users in this institution.';
$string['settingsfor'] = 'Settings for:';
$string['institutionmembers'] = 'Institution members';
$string['notadminforinstitution'] = 'You are not an administrator for that institution.';
......
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