Commit d48ab030 authored by Aaron Wells's avatar Aaron Wells
Browse files

Bug 1603332: Better default styling for plugin config page

Change-Id: I07bb4031679fec26ea0535dc9b6604b5d1c42bc8
behatnotneeded: Covered by existing tests
parent ca00f969
......@@ -50,7 +50,9 @@ if (!call_static_method($classname, 'has_config')) {
}
$form = call_static_method($classname, 'get_config_options');
if (!array_key_exists('class', $form)) {
$form['class'] = 'panel panel-body';
}
$form['plugintype'] = $plugintype;
$form['pluginname'] = $pluginname;
$form['name'] = 'pluginconfig';
......
......@@ -1143,10 +1143,7 @@ class ArtefactTypeComment extends ArtefactType {
),
);
return array(
'name' => 'commentconfig',
'elements' => $elements,
'class' => 'panel panel-body',
'renderer' => 'div'
);
}
......
......@@ -101,7 +101,6 @@ class PluginBlocktypeFolder extends MaharaCoreBlocktype {
),
);
return array(
'class' => 'panel panel-body',
'elements' => $elements,
);
}
......
......@@ -508,6 +508,8 @@ class PluginBlocktypeGallery extends MaharaCoreBlocktype {
);
return array(
'elements' => $elements,
// Don't apply "panel panel-body" style to this form.
'class' => null,
);
}
......
......@@ -176,9 +176,7 @@ class PluginBlocktypeInternalmedia extends MaharaCoreBlocktype {
);
return array(
'class' => 'panel panel-body',
'elements' => $options,
'renderer' => 'div'
);
}
......
......@@ -1742,7 +1742,8 @@ class ArtefactTypeFile extends ArtefactTypeFileBase {
return array(
'elements' => $elements,
'renderer' => 'div'
// Don't apply "panel panel-body" style to this form.
'class' => null,
);
}
......
......@@ -613,7 +613,6 @@ class ArtefactTypeProfile extends ArtefactType {
}
$form = array(
'class' => 'panel panel-body',
'elements' => array(
'mandatory' => array(
'title' => get_string('mandatoryfields', 'artefact.internal'),
......
......@@ -462,9 +462,7 @@ class PluginAuthSaml extends PluginAuth {
}
return array(
'class' => 'panel panel-body',
'elements' => $elements,
'renderer' => 'div'
);
}
......
......@@ -161,7 +161,6 @@ class PluginBlocktypeText extends MaharaCoreBlocktype {
$convertibleblocksnumber = 0;
}
return array(
'class' => 'panel panel-body',
'elements' => array(
'convertdescription' => array(
'value' => get_string('convertdescriptionfeatures', 'blocktype.text') . ' ' . get_string('convertdescription', 'blocktype.text',
......
......@@ -89,7 +89,6 @@ class PluginBlocktypeWall extends MaharaCoreBlocktype {
),
);
return array(
'class' => 'panel panel-body',
'elements' => $elements,
);
......
......@@ -555,7 +555,6 @@ EOF;
$postdelay = (int) get_config_plugin('interaction', 'forum', 'postdelay');
return array(
'class' => 'panel panel-body',
'elements' => array(
'postdelay' => array(
'title' => get_string('postdelay', 'interaction.forum'),
......@@ -566,7 +565,6 @@ EOF;
'defaultvalue' => $postdelay,
),
),
'renderer' => 'div'
);
}
......
......@@ -177,7 +177,6 @@ class PluginSearchElasticsearch extends PluginSearch {
}
$config = array(
'class' => 'panel panel-body',
'elements' => array(
'enablednotice' => array(
'type' => 'html',
......
......@@ -39,7 +39,6 @@ class PluginSearchInternal extends PluginSearch {
public static function get_config_options() {
return array(
'class' => 'panel panel-body',
'elements' => array(
'exactusersearch' => array(
'title' => get_string('exactusersearch', 'search.internal'),
......
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