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

Comments: Change to switchboxes (Bug 1431569)



Change checkboxes to switchboxes at:
- plugin administration
- adding feedback
- editing feedback

Change-Id: I6ebcaff9ede8ba1b852c569e6e4521e960847729
Signed-off-by: Kristina Hoeppner's avatarKristina D.C. Hoeppner <kristina@catalyst.net.nz>
parent 586fdcd6
......@@ -71,7 +71,7 @@ else {
);
}
$elements['ispublic'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('makepublic', 'artefact.comment'),
'defaultvalue' => !$comment->get('private'),
);
......
......@@ -768,7 +768,7 @@ class ArtefactTypeComment extends ArtefactType {
);
}
$form['elements']['ispublic'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('makepublic', 'artefact.comment'),
'defaultvalue' => !$defaultprivate,
);
......@@ -893,7 +893,7 @@ class ArtefactTypeComment extends ArtefactType {
public static function get_config_options() {
$elements = array(
'commentratings' => array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('commentratings', 'artefact.comment'),
'defaultvalue' => get_config_plugin('artefact', 'comment', 'commentratings'),
'help' => true,
......
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