Commit 3ca218d4 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1597977: Changing the checkboxes to switch boxes



Where it makes sense to

behatnotneeded - existing tests should be fine

Change-Id: I521d62bf7851d5fca54220af0f454e6cd2813796
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 97bf0689
......@@ -217,7 +217,7 @@ function webservice_server_edit_form($dbserver, $sopts, $iopts) {
$server_details['elements']['enabled'] = array(
'title' => get_string('enabled'),
'defaultvalue' => (($dbserver->enabled == 1) ? 'checked' : ''),
'type' => 'checkbox',
'type' => 'switchbox',
'disabled' => true,
);
......
......@@ -94,14 +94,14 @@ $token_details['elements']['service'] = array(
$token_details['elements']['enabled'] = array(
'title' => get_string('enabled'),
'defaultvalue' => (($dbservice->enabled == 1) ? 'checked' : ''),
'type' => 'checkbox',
'type' => 'switchbox',
'disabled' => true,
);
$token_details['elements']['restricted'] = array(
'title' => get_string('restrictedusers', 'auth.webservice'),
'defaultvalue' => (($dbservice->restrictedusers == 1) ? 'checked' : ''),
'type' => 'checkbox',
'type' => 'switchbox',
'disabled' => true,
);
......@@ -121,7 +121,7 @@ $token_details['elements']['functions'] = array(
$token_details['elements']['wssigenc'] = array(
'defaultvalue' => (($dbtoken->wssigenc == 1) ? 'checked' : ''),
'type' => 'checkbox',
'type' => 'switchbox',
'disabled' => false,
'title' => get_string('wssigenc', 'auth.webservice'),
);
......
......@@ -109,14 +109,14 @@ $serviceuser_details['elements']['service'] = array(
$serviceuser_details['elements']['enabled'] = array(
'title' => get_string('enabled'),
'defaultvalue' => (($serviceenabled == 1) ? 'checked' : ''),
'type' => 'checkbox',
'type' => 'switchbox',
'disabled' => true,
);
$serviceuser_details['elements']['restricted'] = array(
'title' => get_string('restrictedusers', 'auth.webservice'),
'defaultvalue' => (($restrictedusers == 1) ? 'checked' : ''),
'type' => 'checkbox',
'type' => 'switchbox',
'disabled' => true,
);
......@@ -128,7 +128,7 @@ $serviceuser_details['elements']['functions'] = array(
$serviceuser_details['elements']['wssigenc'] = array(
'defaultvalue' => (($dbserviceuser->wssigenc == 1) ? 'checked' : ''),
'type' => 'checkbox',
'type' => 'switchbox',
'disabled' => false,
'title' => get_string('wssigenc', 'auth.webservice'),
);
......
......@@ -127,7 +127,7 @@ $form = array(
'width' => '280px',
),
'onlyerrors' => array(
'type' => 'checkbox',
'type' => 'switchbox',
'class' => 'last',
'title' => get_string('errors', 'auth.webservice'),
'defaultvalue' => $search->onlyerrors,
......
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