Commit b91c1817 authored by Kristina Hoeppner's avatar Kristina Hoeppner
Browse files

Add user: Switch to switchbox (Bug 1431569)



Uses switchboxes on the "Add user" screen in the
administration. There is a separate patch for
switchboxes in the "General account options".

Change-Id: I866da98fe126c2df2126ec9e0af2e5b9bfc3a7cf
Signed-off-by: Kristina Hoeppner's avatarKristina D.C. Hoeppner <kristina@catalyst.net.nz>
parent 586fdcd6
......@@ -83,12 +83,12 @@ $elements = array(
'rules' => array('required' => true),
),
'staff' => array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('sitestaff', 'admin'),
'ignore' => !$USER->get('admin'),
),
'admin' => array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('siteadmin', 'admin'),
'ignore' => !$USER->get('admin'),
),
......@@ -107,7 +107,7 @@ $elements = array(
'ignore' => !$authinstancecount,
),
'institutionadmin' => array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('institutionadministrator','admin'),
'ignore' => !$authinstancecount,
),
......
Supports Markdown
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