MDL-45282 core_user: fixed up some oddities in the bulk user messaging screen

This commit is contained in:
Andrew Davis
2014-05-07 16:05:51 +08:00
parent b001cabae3
commit e7f899e32a
5 changed files with 15 additions and 4 deletions
+1
View File
@@ -1561,6 +1561,7 @@ $string['sitefilesused'] = 'Site files used in this course';
$string['sitehome'] = 'Site home';
$string['sitelegacyfiles'] = 'Legacy site files';
$string['sitelogs'] = 'Site logs';
$string['sitemessage'] = 'Message users';
$string['sitenews'] = 'Site news';
$string['sitepages'] = 'Site pages';
$string['sitepartlist'] = 'You do not have the required permissions to view the participants list';
@@ -187,3 +187,7 @@ table.message .searchresults td {
#newmessageoverlay #usermessage {
padding: 10px;
}
/* Widen the plain text editor on the bulk message screen */
#page-user-action_redir #edit-messagebody {
width:auto;
}
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -9,8 +9,8 @@
<td align="right"><b>
<?php print_string("messagebody"); ?>:
</b></td>
<td align="left" rowspan="2">
<?php print_textarea($usehtmleditor, 25, 65, 630, 400, "messagebody", $messagebody); ?>
<td align="left">
<?php print_textarea($usehtmleditor, 15, 65, 1, 1, "messagebody", $messagebody); ?>
</td>
</tr>
+7 -1
View File
@@ -104,7 +104,13 @@ if ($data = data_submitted()) {
}
}
$strtitle = get_string('coursemessage');
if ($course->id == SITEID) {
$strtitle = get_string('sitemessage');
$PAGE->set_pagelayout('admin');
} else {
$strtitle = get_string('coursemessage');
$PAGE->set_pagelayout('incourse');
}
$link = null;
if (has_capability('moodle/course:viewparticipants', $coursecontext) || has_capability('moodle/site:viewparticipants', $systemcontext)) {