[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/lti/templates/ -> tool_configure.mustache (source)

   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  }}
  33  <h2>{{#str}} manage_external_tools, mod_lti {{/str}}</h2>
  34  <div class="container-fluid">
  35      <div id="main-content-container">
  36          <div id="registration-form-container" aria-live="polite">
  37              <div id="registration-feedback-container" aria-live="polite"></div>
  38              <div id="registration-choice-container" class="centered-menu">
  39                  <div class="well">
  40                      <p class="lead">{{#str}} autoaddtype, mod_lti {{/str}}</p>
  41                      <form class="form-horizontal" id="add-tool-form">
  42                          <div class="control-group">
  43                              <input name="url"
  44                                  class="input-large"
  45                                  type="url"
  46                                  id="tool-url"
  47                                  placeholder="{{#str}} toolurlplaceholder, mod_lti {{/str}}"
  48                                  required>
  49                              <button id="tool-create-button" type="submit" class="btn btn-success">
  50                                  <span class="btn-text">{{#str}} add {{/str}}</span>
  51                                  <div class="btn-loader">
  52                                      {{> mod_lti/loader }}
  53                                  </div>
  54                              </button>
  55                          </div>
  56                      </form>
  57                      <p>{{#str}} manuallyaddtype, mod_lti, {{{configuremanualurl}}} {{/str}}</p>
  58                      <p><a href="{{{ managetoolsurl }}}">{{#str}} manage_tools, mod_lti {{/str}}</a><br/><a href="{{{ managetoolproxiesurl}}}">{{#str}} manage_tool_proxies, mod_lti {{/str}}</a></p>
  59                  </div>
  60              </div>
  61              <div id="cartridge-registration-container" aria-live="polite" class="hidden">
  62                  {{> mod_lti/cartridge_registration_form }}
  63              </div>
  64              <div id="external-registration-container" aria-live="polite" class="hidden">
  65                  {{> mod_lti/external_registration }}
  66              </div>
  67          </div>
  68  
  69          <div id="tool-list-container" class="loading">
  70              {{> mod_lti/tool_list }}
  71          </div>
  72      </div>
  73  </div>
  74  {{#js}}
  75      require(['mod_lti/tool_configure_controller'], function(controller) {
  76          controller.init();
  77      });
  78  {{/js}}


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1