[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/admin/tool/lp/templates/ -> competency_path.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      Competency path template.
  19  
  20      Classes required for JS:
  21      * competencydialogue
  22  
  23      Context variables required for this template:
  24      * framework - The competency framework
  25        * id - competency id
  26        * name - competency idnumber
  27        * first - true if node is in first position
  28        * last - true if node is in last position
  29        * position - the position of the node in the list
  30  
  31      * ancestors - array of nodes
  32        * id - competency id
  33        * name - competency idnumber
  34        * first - true if node is in first position
  35        * last - true if node is in last position
  36        * position - the position of the node in the list
  37  
  38      * pluginbaseurl - base url of plugin tool_lp
  39  }}
  40  <nav id="competency-path-{{uniqid}}">
  41      <small>
  42          <a href="{{pluginbaseurl}}/competencies.php?competencyframeworkid={{framework.id}}&pagecontextid={{pagecontextid}}" >{{{framework.name}}}</a>
  43          /
  44          {{#ancestors}}
  45              <a data-action="competency-dialogue" href="#" data-id="{{id}}">{{{name}}}</a>
  46              {{^last}}<span> / </span>{{/last}}
  47          {{/ancestors}}
  48      </small>
  49  </nav>
  50  {{#js}}
  51  require(['tool_lp/competencydialogue'], function(Compdialogue) {
  52      Compdialogue.init();
  53  });
  54  {{/js}}


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