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 mod_lti/tool_configure
|
|
|
19 |
|
|
|
20 |
This template provides the layout for the external tool configuration page in the
|
|
|
21 |
LTI module.
|
|
|
22 |
|
|
|
23 |
Classes required for JS:
|
|
|
24 |
* none
|
|
|
25 |
|
|
|
26 |
Data attributes required for JS:
|
|
|
27 |
* none
|
|
|
28 |
|
|
|
29 |
Context variables required for this template:
|
|
|
30 |
*
|
|
|
31 |
|
|
|
32 |
Example context (json):
|
|
|
33 |
{
|
|
|
34 |
"configuremanualurl":"https://some.tool.example/mod/lti/typessettings.php?sesskey=OKl37bHflL&returnto=toolconfigure",
|
|
|
35 |
"managetoolsurl":"https://some.tool.example/admin/settings.php?section=modsettinglti",
|
|
|
36 |
"managetoolproxiesurl":"https://some.tool.example/mod/lti/toolproxies.php"
|
|
|
37 |
}
|
|
|
38 |
|
|
|
39 |
}}
|
|
|
40 |
<h2>{{#str}} manage_external_tools, mod_lti {{/str}}</h2>
|
|
|
41 |
<div id="main-content-container">
|
|
|
42 |
<div id="registration-form-container" aria-live="polite">
|
|
|
43 |
<div id="registration-feedback-container" aria-live="polite"></div>
|
|
|
44 |
<div id="registration-choice-container" class="centered-menu">
|
|
|
45 |
<div class="card card-block">
|
|
|
46 |
<p class="lead">{{#str}} autoaddtype, mod_lti {{/str}}</p>
|
|
|
47 |
<form class="d-flex flex-wrap align-items-center justify-content-center" id="add-tool-form">
|
|
|
48 |
<div class="control-group">
|
|
|
49 |
<input name="url"
|
|
|
50 |
class="form-control"
|
|
|
51 |
type="url"
|
|
|
52 |
id="tool-url"
|
|
|
53 |
placeholder="{{#str}} toolurlplaceholder, mod_lti {{/str}}"
|
|
|
54 |
required>
|
|
|
55 |
<button id="tool-create-button" type="submit" class="btn btn-success">
|
|
|
56 |
<span class="btn-text">{{#str}} add_ltiadv, mod_lti {{/str}}</span>
|
|
|
57 |
<span class="btn-loader">
|
|
|
58 |
{{> mod_lti/loader }}
|
|
|
59 |
</span>
|
|
|
60 |
</button>
|
|
|
61 |
<button id="tool-createltilegacy-button" type="button" class="btn btn-warning">
|
|
|
62 |
<span class="btn-text">{{#str}} add_ltilegacy, mod_lti {{/str}}</span>
|
|
|
63 |
<span class="btn-loader">
|
|
|
64 |
{{> mod_lti/loader }}
|
|
|
65 |
</span>
|
|
|
66 |
</button>
|
|
|
67 |
</div>
|
|
|
68 |
</form>
|
|
|
69 |
<p>{{#str}} manuallyaddtype, mod_lti, {{{configuremanualurl}}} {{/str}}</p>
|
|
|
70 |
<p><a href="{{{ managetoolsurl }}}">{{#str}} manage_tools, mod_lti {{/str}}</a><br/><a href="{{{ managetoolproxiesurl}}}">{{#str}} manage_tool_proxies, mod_lti {{/str}}</a></p>
|
|
|
71 |
</div>
|
|
|
72 |
</div>
|
|
|
73 |
<div id="cartridge-registration-container" aria-live="polite" class="hidden">
|
|
|
74 |
{{> mod_lti/cartridge_registration_form }}
|
|
|
75 |
</div>
|
|
|
76 |
<div id="external-registration-container" aria-live="polite" class="hidden">
|
|
|
77 |
{{> mod_lti/external_registration }}
|
|
|
78 |
</div>
|
|
|
79 |
</div>
|
|
|
80 |
|
|
|
81 |
<div id="tool-list-container" class="loading">
|
|
|
82 |
<h3>{{#str}} tooltypes, mod_lti {{/str}}</h3>
|
|
|
83 |
<div id="tool-list-loader-container">
|
|
|
84 |
{{> mod_lti/loader }}
|
|
|
85 |
</div>
|
|
|
86 |
{{> mod_lti/tool_list }}
|
|
|
87 |
</div>
|
|
|
88 |
</div>
|
|
|
89 |
{{#js}}
|
|
|
90 |
require(['mod_lti/tool_configure_controller'], function(controller) {
|
|
|
91 |
controller.init();
|
|
|
92 |
});
|
|
|
93 |
{{/js}}
|