mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00

- Add .visually-hidden to the Boostratp 5 bridge SCSS file - Replace .sr-only occurrences with .visually-hidden - Replace .dropzone-sr-only-focusable with .dropzone-visually-hidden-focusable for consistency
58 lines
2.4 KiB
Text
58 lines
2.4 KiB
Text
{{!
|
|
This file is part of Moodle - http://moodle.org/
|
|
|
|
Moodle is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
Moodle is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
}}
|
|
{{!
|
|
@template tool_moodlenet/select_page
|
|
|
|
This template renders the course selection page for the MoodleNet tool.
|
|
|
|
Example context (json):
|
|
{
|
|
"name": "A cat picture",
|
|
"cancellink": "https://moodlesite/my"
|
|
}
|
|
}}
|
|
<div data-region="moodle-net-select">
|
|
<div class="alert alert-primary" role="alert">
|
|
{{#str}} notification, tool_moodlenet, {"name": {{#quote}}{{name}}{{/quote}}, "cancellink": {{#quote}}{{cancellink}}{{/quote}}, "type": {{#quote}}{{type}}{{/quote}} } {{/str}}
|
|
</div>
|
|
<h3>{{#str}} selectacourse {{/str}}</h3>
|
|
<div class="searchbar input-group w-50" role="search">
|
|
<label for="searchinput">
|
|
<span class="visually-hidden">{{#str}} searchcourses, tool_moodlenet {{/str}}</span>
|
|
</label>
|
|
<input type="text"
|
|
data-region="search-input"
|
|
id="searchinput"
|
|
class="form-control form-control-lg searchinput border-end-0 px-3 py-2"
|
|
placeholder="{{#str}} search, core {{/str}}"
|
|
name="search"
|
|
autocomplete="off"
|
|
>
|
|
<div class="searchbar-append d-flex border border-secondary border-start-0 px-3 py-2">
|
|
<div data-region="search-icon">
|
|
{{#pix}} a/search, core {{/pix}}
|
|
</div>
|
|
<div class="clear d-none">
|
|
<button class="btn p-0" data-region="clear-icon">
|
|
<span class="d-flex" aria-hidden="true">{{#pix}} e/cancel, core {{/pix}}</span>
|
|
<span class="visually-hidden">{{#str}} clearsearch, tool_moodlenet {{/str}}</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="my-4" data-region="mnet-courses" aria-live="polite"></div>
|
|
</div>
|