Skip to content

Commit

Permalink
MDL-45282 core_user: fixed up some oddities in the bulk user messagin…
Browse files Browse the repository at this point in the history
…g screen
  • Loading branch information
andyjdavis committed May 7, 2014
1 parent f8fa440 commit f624f56
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
1 change: 1 addition & 0 deletions lang/en/moodle.php
Expand Up @@ -1695,6 +1695,7 @@
$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';
Expand Down
4 changes: 4 additions & 0 deletions theme/bootstrapbase/less/moodle/message.less
Expand Up @@ -180,3 +180,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;
}
2 changes: 1 addition & 1 deletion theme/bootstrapbase/style/moodle.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions user/message.html
Expand Up @@ -9,8 +9,8 @@
<td align="right"><b>
<?php print_string("messagebody"); ?>:
</b></td>
<td align="left" rowspan="2">
<?php print_textarea(true, 25, 65, 630, 400, "messagebody", $messagebody); ?>
<td align="left">
<?php print_textarea(true, 15, 65, 1, 1, "messagebody", $messagebody); ?>
</td>
</tr>

Expand Down
8 changes: 7 additions & 1 deletion user/messageselect.php
Expand Up @@ -105,7 +105,13 @@
}
}

$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) ||
Expand Down

0 comments on commit f624f56

Please sign in to comment.