1 |
efrain |
1 |
{{!
|
|
|
2 |
This file is part of Moodle - http://moodle.org/
|
|
|
3 |
|
|
|
4 |
Moodle is free software: you can redistribute it and/or modify
|
|
|
5 |
it under the terms of the GNU General Public License as published by
|
|
|
6 |
the Free Software Foundation, either version 3 of the License, or
|
|
|
7 |
(at your option) any later version.
|
|
|
8 |
|
|
|
9 |
Moodle is distributed in the hope that it will be useful,
|
|
|
10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
12 |
GNU General Public License for more details.
|
|
|
13 |
|
|
|
14 |
You should have received a copy of the GNU General Public License
|
|
|
15 |
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16 |
}}
|
|
|
17 |
{{!
|
|
|
18 |
@template tool_moodlenet/chooser_moodlenet
|
|
|
19 |
|
|
|
20 |
Chooser favourite template partial.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
}
|
|
|
25 |
}}
|
|
|
26 |
<div class="optionsummary" tabindex="-1" data-region="chooser-option-summary-container">
|
|
|
27 |
<div class="content text-left mb-5 px-5 py-4" data-region="chooser-option-summary-content-container">
|
|
|
28 |
<div data-region="moodle-net">
|
|
|
29 |
<div class="overlay-icon-container z-index-1 d-none" data-region="spinner"></div>
|
|
|
30 |
<img class="w-25 mb-4" aria-hidden="true" src="{{{img}}}">
|
|
|
31 |
<p>{{#str}} instancedescription, tool_moodlenet {{/str}}</p>
|
|
|
32 |
<p class="w-75 mx-auto mb-1 mt-5">{{#str}} connectandbrowse, tool_moodlenet {{/str}}</p>
|
|
|
33 |
<a class="btn btn-secondary d-block w-75 mx-auto mb-4"
|
|
|
34 |
data-action="browse"
|
|
|
35 |
href="{{{generic}}}"
|
|
|
36 |
>
|
|
|
37 |
{{{buttonName}}}
|
|
|
38 |
</a>
|
|
|
39 |
<div id="mnet-instance-form-{{uniqid}}" data-region="mnet-form">
|
|
|
40 |
<input type="hidden" name="sesskey" value="{{sesskey}}">
|
|
|
41 |
<div class="w-75 mx-auto my-3">
|
|
|
42 |
<p class="text-left">{{#str}}inputhelp, tool_moodlenet{{/str}}</p>
|
|
|
43 |
<div class="input-group">
|
|
|
44 |
<input type="text"
|
|
|
45 |
class="form-control"
|
|
|
46 |
data-var="mnet-link"
|
|
|
47 |
data-courseid="{{courseID}}"
|
|
|
48 |
data-sectionid="{{sectionID}}"
|
|
|
49 |
placeholder="{{#str}} instanceplaceholder, tool_moodlenet {{/str}}"
|
|
|
50 |
aria-label="{{#str}} aria:enterprofile, tool_moodlenet {{/str}}"
|
|
|
51 |
autocomplete="off"
|
|
|
52 |
>
|
|
|
53 |
<div class="input-group-append z-index-0">
|
|
|
54 |
<button class="btn btn-secondary"
|
|
|
55 |
data-action="submit" id="button-addon2"
|
|
|
56 |
>
|
|
|
57 |
{{#str}} saveandgo, tool_moodlenet {{/str}}
|
|
|
58 |
</button>
|
|
|
59 |
</div>
|
|
|
60 |
</div>
|
|
|
61 |
<p class="text-left" aria-live="assertive" data-region="validation-area"></p>
|
|
|
62 |
<p class="text-left">{{#str}} forminfo, tool_moodlenet {{/str}}</p>
|
|
|
63 |
</div>
|
|
|
64 |
</div>
|
|
|
65 |
</div>
|
|
|
66 |
</div>
|
|
|
67 |
</div>
|