Merge branch 'MDL-47899-master' of https://github.com/lucaboesch/moodle
This commit is contained in:
+3
-1
@@ -435,6 +435,9 @@ class core_course_renderer extends plugin_renderer_base {
|
||||
$output .= html_writer::empty_tag('input', array('type' => 'submit',
|
||||
'value' => get_string('go')));
|
||||
$output .= html_writer::end_tag('fieldset');
|
||||
if ($format != 'navbar') {
|
||||
$output .= $this->output->help_icon("coursesearch", "core");
|
||||
}
|
||||
$output .= html_writer::end_tag('form');
|
||||
|
||||
return $output;
|
||||
@@ -1853,7 +1856,6 @@ class core_course_renderer extends plugin_renderer_base {
|
||||
// just print search form
|
||||
$content .= $this->box_start('generalbox mdl-align');
|
||||
$content .= $this->course_search_form();
|
||||
$content .= html_writer::tag('div', get_string("searchhelp"), array('class' => 'searchhelp'));
|
||||
$content .= $this->box_end();
|
||||
}
|
||||
return $content;
|
||||
|
||||
+7
-6
@@ -383,6 +383,13 @@ $string['coursesectiontitle'] = 'Course: {$a->course}, {$a->sectionname}: {$a->s
|
||||
$string['coursesettings'] = 'Course default settings';
|
||||
$string['coursesmovedout'] = 'Courses moved out from {$a}';
|
||||
$string['coursespending'] = 'Courses pending approval';
|
||||
$string['coursesearch'] = 'Search courses';
|
||||
$string['coursesearch_help'] = '<p>You can search for multiple words at once and can refine your search as follows:</p>
|
||||
<ul>
|
||||
<li>word - find any match of this word within the text.</li>
|
||||
<li>+word - only exact matching words will be found.</li>
|
||||
<li>-word - don\'t include results containing this word.</li>
|
||||
</ul>';
|
||||
$string['coursestart'] = 'Course start';
|
||||
$string['coursesummary'] = 'Course summary';
|
||||
$string['coursesummary_help'] = 'The course summary is displayed in the list of courses. A course search searches course summary text in addition to course names.';
|
||||
@@ -1743,12 +1750,6 @@ $string['searchagain'] = 'Search again';
|
||||
$string['searchbyemail'] = 'Search by email address';
|
||||
$string['searchbyusername'] = 'Search by username';
|
||||
$string['searchcourses'] = 'Search courses';
|
||||
$string['searchhelp'] = '<p>You can search for multiple words at once and can refine your search as follows:</p>
|
||||
<ul>
|
||||
<li>word - find any match of this word within the text.</li>
|
||||
<li>+word - only exact matching words will be found.</li>
|
||||
<li>-word - don\'t include results containing this word.</li>
|
||||
</ul>';
|
||||
$string['searchoptions'] = 'Search options';
|
||||
$string['searchresults'] = 'Search results';
|
||||
$string['sec'] = 'sec';
|
||||
|
||||
@@ -74,6 +74,10 @@ class course_renderer extends \core_course_renderer {
|
||||
'inputsize' => $inputsize,
|
||||
'value' => $value
|
||||
];
|
||||
if ($format != 'navbar') {
|
||||
$helpicon = new \help_icon('coursesearch', 'core');
|
||||
$data->helpicon = $helpicon->export_for_template($this);
|
||||
}
|
||||
|
||||
return $this->render_from_template('theme_boost/course_search_form', $data);
|
||||
}
|
||||
|
||||
@@ -19,5 +19,8 @@
|
||||
<label for="{{inputid}}">{{#str}}searchcourses{{/str}}</label>
|
||||
<input id="{{inputid}}" name="search" type="text" size="{{inputsize}}" value="{{value}}" class="form-control">
|
||||
<button class="btn btn-secondary" type="submit">{{#str}}go{{/str}}</button>
|
||||
{{#helpicon}}
|
||||
{{>core/help_icon}}
|
||||
{{/helpicon}}
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user