Merge branch 'MDL-85795-main-2' of https://github.com/junpataleta/moodle
This commit is contained in:
@@ -98,6 +98,7 @@ $string['optimize'] = 'Optimize';
|
||||
$string['order'] = 'Results order';
|
||||
$string['order_location'] = 'Prioritise results related to {$a}';
|
||||
$string['order_relevance'] = 'Most relevant results first';
|
||||
$string['performsearch'] = 'Perform search';
|
||||
$string['priority'] = 'Priority';
|
||||
$string['priority_reindexing'] = 'Reindexing';
|
||||
$string['priority_normal'] = 'Normal';
|
||||
@@ -126,6 +127,7 @@ $string['searchnotpermitted'] = 'You are not allowed to do a search';
|
||||
$string['searchsetupdescription'] = 'The following steps help you to set up Moodle global search.';
|
||||
$string['searchwithin'] = 'Search within';
|
||||
$string['seconds'] = 'seconds';
|
||||
$string['sitewidesearch'] = 'Sitewide search';
|
||||
$string['solutions'] = 'Solutions';
|
||||
$string['statistics'] = 'Statistics';
|
||||
$string['step'] = 'Step';
|
||||
|
||||
@@ -3061,7 +3061,8 @@ EOD;
|
||||
'hiddenfields' => (object) ['name' => 'context', 'value' => $this->page->context->id],
|
||||
'inputname' => 'q',
|
||||
'searchstring' => get_string('search'),
|
||||
];
|
||||
'grouplabel' => get_string('sitewidesearch', 'search'),
|
||||
];
|
||||
return $this->render_from_template('core/search_input_navbar', $data);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,8 +38,10 @@
|
||||
{{#hiddenfields}}
|
||||
<input type="hidden" name="{{ name }}" value="{{ value }}">
|
||||
{{/hiddenfields}}
|
||||
<div class="input-group">
|
||||
|
||||
<div class="input-group" {{#grouplabel}}role="group" aria-labelledby="searchgrouplabel-{{uniqid}}"{{/grouplabel}}>
|
||||
{{#grouplabel}}
|
||||
<span id="searchgrouplabel-{{uniqid}}" class="visually-hidden">{{{ . }}}</span>
|
||||
{{/grouplabel}}
|
||||
<input type="text"
|
||||
id="searchinput-{{uniqid}}"
|
||||
class="form-control withclear"
|
||||
@@ -57,12 +59,13 @@
|
||||
data-bs-toggle="collapse"
|
||||
href="#searchform-navbar"
|
||||
role="button"
|
||||
title="{{#str}} closebuttontitle {{/str}}"
|
||||
>
|
||||
<span class="visually-hidden">{{#str}} closebuttontitle {{/str}}</span>
|
||||
</a>
|
||||
<button type="submit" class="btn btn-submit" data-action="submit">
|
||||
<button type="submit" class="btn btn-submit" data-action="submit" title="{{#str}}performsearch, search{{/str}}">
|
||||
{{#pix}} a/search, core {{/pix}}
|
||||
<span class="visually-hidden">{{{ searchstring }}}</span>
|
||||
<span class="visually-hidden">{{#str}}performsearch, search{{/str}}</span>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -35,7 +35,8 @@
|
||||
}}
|
||||
<div class="border-bottom p-1 px-sm-2" aria-hidden="false" {{^isdrawer}}data-in-panel="true"{{/isdrawer}} data-region="view-overview">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="input-group simplesearchform">
|
||||
<div class="input-group simplesearchform" role="group" aria-labelledby="messageoverviewgrouplabel">
|
||||
<span class="visually-hidden" id="messageoverviewgrouplabel">{{#str}}searchcombined, message{{/str}}</span>
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
|
||||
@@ -45,7 +45,8 @@
|
||||
>
|
||||
{{> core_message/message_drawer_icon_back }}
|
||||
</a>
|
||||
<div class="input-group simplesearchform">
|
||||
<div class="input-group simplesearchform" role="group" aria-labelledby="messagesearchgrouplabel">
|
||||
<span class="visually-hidden" id="messagesearchgrouplabel">{{#str}}searchcombined, message{{/str}}</span>
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
@@ -57,7 +58,8 @@
|
||||
class="btn btn-submit icon-no-margin"
|
||||
type="button"
|
||||
data-action="search"
|
||||
aria-label="{{#str}} search, core_search {{/str}}"
|
||||
aria-label="{{#str}} performsearch, core_search {{/str}}"
|
||||
title="{{#str}} performsearch, core_search {{/str}}"
|
||||
>
|
||||
<span data-region="search-icon-container">
|
||||
{{#pix}} a/search, core {{/pix}}
|
||||
@@ -68,4 +70,4 @@
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -53,7 +53,8 @@ class behat_search extends behat_base {
|
||||
|
||||
// Submit the form.
|
||||
$this->execute("behat_general::i_click_on_in_the",
|
||||
[get_string('search', 'core'), 'button', '#usernavigation', 'css_element']);
|
||||
[get_string('performsearch', 'search'), 'button', '#usernavigation', 'css_element']
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user