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

Group homepage: Change to switchboxes (Bug 1431569)

Changed checkboxes to switchboxes and made some
language string adjustments.

Change-Id: I04fe22799757ed80db787c895f8ebc1d1a9eaffc
parent 3dbd93f1
......@@ -129,7 +129,7 @@ $cancreatecontrolled = $USER->get('admin') || $USER->get('staff')
|| $USER->is_institutional_admin() || $USER->is_institutional_staff();
$elements['open'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('Open', 'group'),
'description' => get_string('opendescription', 'group'),
'defaultvalue' => $group_data->open,
......@@ -137,7 +137,7 @@ $elements['open'] = array(
);
if ($cancreatecontrolled || $group_data->controlled) {
$elements['controlled'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('Controlled', 'group'),
'description' => get_string('controlleddescription', 'group'),
'defaultvalue' => $group_data->controlled,
......@@ -151,7 +151,7 @@ else {
);
}
$elements['request'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('request', 'group'),
'description' => get_string('requestdescription', 'group'),
'defaultvalue' => !$group_data->open && $group_data->request,
......@@ -193,16 +193,16 @@ else {
}
$elements['invitefriends'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('friendinvitations', 'group'),
'description' => get_string('invitefriendsdescription', 'group'),
'description' => get_string('invitefriendsdescription1', 'group'),
'defaultvalue' => $group_data->invitefriends,
);
$elements['suggestfriends'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('Recommendations', 'group'),
'description' => get_string('suggestfriendsdescription', 'group'),
'description' => get_string('suggestfriendsdescription1', 'group'),
'defaultvalue' => $group_data->suggestfriends && ($group_data->open || $group_data->request),
'disabled' => !$group_data->open && !$group_data->request,
);
......@@ -224,13 +224,13 @@ $elements['editroles'] = array(
if ($cancreatecontrolled) {
$elements['submittableto'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('allowsubmissions', 'group'),
'description' => get_string('allowssubmissionsdescription1', 'group'),
'defaultvalue' => $group_data->submittableto,
);
$elements['allowarchives'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('allowsarchives', 'group'),
'description' => get_string('allowsarchivesdescription', 'group'),
'defaultvalue' => $group_data->allowarchives,
......@@ -270,9 +270,9 @@ if ($cancreatecontrolled || !$ignorepublic) {
}
$elements['public'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('publiclyviewablegroup', 'group'),
'description' => get_string('publiclyviewablegroupdescription', 'group'),
'description' => get_string('publiclyviewablegroupdescription1', 'group'),
'defaultvalue' => $group_data->public,
'help' => true,
'ignore' => $ignorepublic,
......@@ -280,22 +280,22 @@ $elements['public'] = array(
if ($cancreatecontrolled) {
$elements['hidden'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('hiddengroup', 'group'),
'description' => get_string('hiddengroupdescription', 'group'),
'description' => get_string('hiddengroupdescription1', 'group'),
'defaultvalue' => $group_data->hidden,
);
$elements['hidemembers'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('hidemembers', 'group'),
'description' => get_string('hidemembersdescription', 'group'),
'defaultvalue' => $group_data->hidemembers || $group_data->hidemembersfrommembers,
'disabled' => $group_data->hidemembersfrommembers,
);
$elements['hidemembersfrommembers'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('hidemembersfrommembers', 'group'),
'description' => get_string('hidemembersfrommembersdescription', 'group'),
'description' => get_string('hidemembersfrommembersdescription1', 'group'),
'defaultvalue' => $group_data->hidemembersfrommembers,
);
}
......@@ -315,9 +315,9 @@ else {
}
$elements['groupparticipationreports'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('groupparticipationreports', 'group'),
'description' => get_string('groupparticipationreportsdesc', 'group'),
'description' => get_string('groupparticipationreportsdesc1', 'group'),
'defaultvalue' => $group_data->groupparticipationreports,
);
......@@ -375,9 +375,9 @@ if (get_config('allowgroupcategories')
}
$elements['usersautoadded'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('usersautoadded', 'group'),
'description' => get_string('usersautoaddeddescription', 'group'),
'description' => get_string('usersautoaddeddescription1', 'group'),
'defaultvalue' => $group_data->usersautoadded,
'help' => true,
'ignore' => !$USER->get('admin'));
......@@ -398,9 +398,9 @@ $elements['feedbacknotify'] = array(
);
if ($cancreatecontrolled) {
$elements['sendnow'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('allowsendnow', 'group'),
'description' => get_string('allowsendnowdescription', 'group'),
'description' => get_string('allowsendnowdescription1', 'group'),
'defaultvalue' => $group_data->sendnow
);
}
......
......@@ -75,12 +75,12 @@ $string['editrolesdescription'] = 'Roles with permission to create and edit grou
$string['allexceptmember'] = 'Everyone except ordinary members';
$string['Admin'] = 'Administrator';
$string['publiclyviewablegroup'] = 'Publicly viewable group';
$string['publiclyviewablegroupdescription'] = 'Allow people who are not logged in to view this group including the forums.';
$string['publiclyviewablegroupdescription1'] = 'Allow anyone online to view this group including the forums.';
$string['Type'] = 'Type';
$string['publiclyvisible'] = 'Publicly visible';
$string['Public'] = 'Public';
$string['usersautoadded'] = 'Auto-add users';
$string['usersautoaddeddescription'] = 'Automatically put all new users into this group.';
$string['usersautoaddeddescription1'] = 'Automatically add any user who joins the site to this group.';
$string['groupcategory'] = 'Group category';
$string['allcategories'] = 'All categories';
$string['groupoptionsset'] = 'Group options have been updated.';
......@@ -95,18 +95,18 @@ $string['viewnotifydescription2'] = 'Select which group members should receive a
$string['feedbacknotify'] = 'Feedback notifications';
$string['feedbacknotifydescription1'] = 'Select which group members should receive a notification when feedback is placed on a group page and artefacts.';
$string['allowsendnow'] = 'Send forum posts immediately';
$string['allowsendnowdescription'] = 'If checked, any group member will be able to choose to send forum posts immediately. If unchecked, only group administrators, tutors and moderators can do so.';
$string['allowsendnowdescription1'] = 'Any group member can choose to send forum posts immediately. If this option is set to "Off", only group administrators, tutors and moderators can do so.';
$string['hiddengroup'] = 'Hide group';
$string['hiddengroupdescription'] = 'Do not list this group on the "Find groups" page.';
$string['hiddengroupdescription1'] = 'Hide this group on the "Find groups" page.';
$string['hidemembers'] = 'Hide membership';
$string['hidemembersdescription'] = 'Hide the group\'s membership listing from non-members.';
$string['hidemembersfrommembers'] = 'Hide membership from members';
$string['hidemembersfrommembersdescription'] = 'Members are not listed. Only group administrators can see the members listed. Administrators will still be shown on the group homepage.';
$string['hidemembersfrommembersdescription1'] = 'Hide the members of this group. Only group administrators can see the list of members. Administrators are still shown on the group homepage.';
$string['friendinvitations'] = 'Friend invitations';
$string['invitefriendsdescription'] = 'If checked, members are allowed to invite friends to join the group. Regardless of this setting, group administrators can always send invitations to anyone.';
$string['invitefriendsdescription1'] = 'Allow members to invite friends to join this group. Regardless of this setting, group administrators can always send invitations to anyone.';
$string['invitefriends'] = 'Invite friends';
$string['Recommendations'] = 'Recommendations';
$string['suggestfriendsdescription'] = 'If checked, members can easily send a recommendation for joining this group to their friends from a button on the group homepage.';
$string['suggestfriendsdescription1'] = 'Allow members to send a recommendation for joining this group to their friends from a button on the group homepage.';
$string['suggesttofriends'] = 'Recommend to friends';
$string['userstosendrecommendationsto'] = 'Users who will be sent a recommendation';
$string['suggestgroupnotificationsubject'] = '%s suggested you join a group';
......@@ -386,4 +386,4 @@ $string['nnonmembers'] = array(
$string['membercommenters'] = "Members involved";
$string['extcommenters'] = "Non-members involved";
$string['groupparticipationreports'] = "Participation report";
$string['groupparticipationreportsdesc'] = "If checked, the group admin can access a report displaying all group and shared pages and who has commented on them.";
$string['groupparticipationreportsdesc1'] = "Group administrators can access a report displaying all group and shared pages and who has commented on them.";
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