Commit e5dc36d8 authored by Kristina Hoeppner's avatar Kristina Hoeppner Committed by Gerrit Code Review
Browse files

Inst. static pages: Change to switchboxes (Bug 1431569)

Change the checkbox to a switchbox.

Change-Id: I19b26ac7af460dd758bff864c7ac4a5bd946dde0
Signed-off-by: Kristina Hoeppner's avatarKristina D.C. Hoeppner <>
parent 3dbd93f1
......@@ -78,9 +78,9 @@ $form = pieform(array(
'options' => $pageoptions
'pageusedefault' => array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('usedefault', 'admin'),
'description' => get_string('usedefaultdescription1', 'admin'),
'description' => get_string('usedefaultdescription2', 'admin'),
'defaultvalue' => (get_config_institution($institutionselector['defaultvalue'], 'sitepages_' . DEFAULTPAGE) == 'mahara' ? 1 : 0),
'pagetext' => array(
......@@ -80,7 +80,7 @@ $string['staticpages'] = 'Static pages';
$string['institutionstaticpages'] = 'Institution static pages';
$string['staticpageinstitutionbad'] = "You can't access and/or edit static pages for institution '%s'";
$string['usedefault'] = 'Use site default';
$string['usedefaultdescription1'] = 'Use the site\'s default text for this particular page type instead.';
$string['usedefaultdescription2'] = 'If set to "On", use the site\'s default text for the selected page type.';
$string['staticpagesdescription'] = 'Edit the content of static pages in Mahara (Home, Terms and Conditions, etc.)';
$string['menus'] = 'Menus';
$string['menusdescription'] = 'Manage the links and files within the "Links and resources" and footer menus';
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