Skip to content

Commit

Permalink
MDL-42434 mod_chat: add again the usingchat help icon
Browse files Browse the repository at this point in the history
In Moodle 2.4 the help icon displayed in the chat window was
removed. It has been added to gui_ajax and gui_basic in order to help users.
  • Loading branch information
sarjona committed Aug 14, 2020
1 parent a0fc902 commit 522b89c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions mod/chat/gui_ajax/index.php
Expand Up @@ -97,13 +97,15 @@
'<ul id="messages-list"></ul>', '', 'chat-messages');
$table = new html_table();
$table->data = array(
array('<div class="form-inline"><label class="accesshide" for="input-message">'.get_string('entermessage', 'chat').' </label>'.
array('<div class="form-inline"><div class="d-flex"><label class="accesshide" for="input-message">'.
get_string('entermessage', 'chat').' </label>'.
'<span class="form-group"><input type="text" disabled="true" class="form-control" ' .
'id="input-message" value="Loading..." size="48" /></span>'.
'<span class="form-group"><input type="button" id="button-send" class="btn btn-secondary mx-1" ' .
'value="'.get_string('send', 'chat').'" /></span> <span class="form-group"><a id="choosetheme" href="###">'.
'value="'.get_string('send', 'chat').'" />' .$OUTPUT->help_icon('usingchat', 'chat'). '</span></div>' .
' <div class="form-group d-flex ml-auto"><a id="choosetheme" href="###">'.
get_string('themes').
' &raquo; </a></span></div>'));
' &raquo; </a></div></div>'));
echo $OUTPUT->box(html_writer::tag('h2', get_string('composemessage', 'chat'), array('class' => 'accesshide')) .
html_writer::table($table), '', 'chat-input-area');
echo $OUTPUT->box('', '', 'chat-notify');
Expand Down
4 changes: 3 additions & 1 deletion mod/chat/gui_basic/index.php
Expand Up @@ -149,7 +149,9 @@
echo '<div id="send">';
echo '<form id="editing" method="post" action="index.php">';

echo '<h2><label for="message">'.get_string('sendmessage', 'message').'</label></h2>';
echo '<h2><label for="message">' . get_string('sendmessage', 'message');
echo $OUTPUT->help_icon('usingchat', 'chat');
echo '</label></h2>';
echo '<div class="mb-1">';
echo '<input type="text" id="message" class="form-control" name="message" value="'.s($refreshedmessage, true).'" size="60" />';
echo '</div><div class="mb-1">';
Expand Down

0 comments on commit 522b89c

Please sign in to comment.