mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Merge branch 'MDL-77313' of https://github.com/paulholden/moodle
This commit is contained in:
commit
49d013efd6
2 changed files with 18 additions and 1 deletions
|
@ -786,6 +786,10 @@ class core_backup_renderer extends plugin_renderer_base {
|
||||||
'extraclasses' => 'rcs-search mb-3 w-25',
|
'extraclasses' => 'rcs-search mb-3 w-25',
|
||||||
'inputname' => restore_course_search::$VAR_SEARCH,
|
'inputname' => restore_course_search::$VAR_SEARCH,
|
||||||
'searchstring' => get_string('searchcourses'),
|
'searchstring' => get_string('searchcourses'),
|
||||||
|
'buttonattributes' => [
|
||||||
|
(object) ['key' => 'name', 'value' => 'searchcourses'],
|
||||||
|
(object) ['key' => 'value', 'value' => 1],
|
||||||
|
],
|
||||||
'query' => $component->get_search(),
|
'query' => $component->get_search(),
|
||||||
];
|
];
|
||||||
$output .= $this->output->render_from_template('core/search_input', $data);
|
$output .= $this->output->render_from_template('core/search_input', $data);
|
||||||
|
@ -955,6 +959,10 @@ class core_backup_renderer extends plugin_renderer_base {
|
||||||
'extraclasses' => 'rcs-search mb-3 w-25',
|
'extraclasses' => 'rcs-search mb-3 w-25',
|
||||||
'inputname' => restore_category_search::$VAR_SEARCH,
|
'inputname' => restore_category_search::$VAR_SEARCH,
|
||||||
'searchstring' => get_string('searchcoursecategories'),
|
'searchstring' => get_string('searchcoursecategories'),
|
||||||
|
'buttonattributes' => [
|
||||||
|
(object) ['key' => 'name', 'value' => 'searchcourses'],
|
||||||
|
(object) ['key' => 'value', 'value' => 1],
|
||||||
|
],
|
||||||
'query' => $component->get_search(),
|
'query' => $component->get_search(),
|
||||||
];
|
];
|
||||||
$output .= $this->output->render_from_template('core/search_input', $data);
|
$output .= $this->output->render_from_template('core/search_input', $data);
|
||||||
|
|
|
@ -28,6 +28,12 @@
|
||||||
"searchstring": "Search settings",
|
"searchstring": "Search settings",
|
||||||
"value": "policy",
|
"value": "policy",
|
||||||
"btnclass": "primary",
|
"btnclass": "primary",
|
||||||
|
"buttonattributes": [
|
||||||
|
{
|
||||||
|
"key": "name",
|
||||||
|
"value": "hello"
|
||||||
|
}
|
||||||
|
],
|
||||||
"query": "themedesigner",
|
"query": "themedesigner",
|
||||||
"hiddenfields": [
|
"hiddenfields": [
|
||||||
{
|
{
|
||||||
|
@ -59,7 +65,10 @@
|
||||||
value="{{ query }}"
|
value="{{ query }}"
|
||||||
>
|
>
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button type="submit" class="btn {{^btnclass}}btn-submit{{/btnclass}} {{ btnclass }} search-icon">
|
<button type="submit"
|
||||||
|
class="btn {{^btnclass}}btn-submit{{/btnclass}} {{ btnclass }} search-icon"
|
||||||
|
{{#buttonattributes}}{{ key }}="{{ value }}" {{/buttonattributes}}
|
||||||
|
>
|
||||||
{{#pix}} a/search, core {{/pix}}
|
{{#pix}} a/search, core {{/pix}}
|
||||||
<span class="sr-only">{{ searchstring }}</span>
|
<span class="sr-only">{{ searchstring }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue