{{! 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 . }} {{! @template tool_analytics/models_list Template for models list. Classes required for JS: * none Data attributes required for JS: * none Context variables required for this template: * none Example context (json): { "models": [ { "target": "Prevent devs at risk", "targethelp": [ { "title": "Help with something", "url": "http://example.org/help", "linktext": "", "icon":{ "extraclasses": "iconhelp", "attributes": [ {"name": "src", "value": "../../../pix/help.svg"}, {"name": "alt", "value": "Help icon"} ] } } ], "enabled": 1, "indicators": [{ "name": "Indicator 1", "help": [{ "title": "Help with something", "url": "http://example.org/help", "linktext": "", "icon":{ "extraclasses": "iconhelp", "attributes": [ {"name": "src", "value": "../../../pix/help.svg"}, {"name": "alt", "value": "Help icon"} ] } }] }, { "name": "Indicator 2", "help": [{ "title": "Help with something", "url": "http://example.org/help", "linktext": "", "icon":{ "extraclasses": "iconhelp", "attributes": [ {"name": "src", "value": "../../../pix/help.svg"}, {"name": "alt", "value": "Help icon"} ] } }] }], "timesplitting": "Quarters", "timesplittinghelp": [ { "title": "Help with something", "url": "http://example.org/help", "linktext": "", "icon":{ "extraclasses": "iconhelp", "attributes": [ {"name": "src", "value": "../../../pix/help.svg"}, {"name": "alt", "value": "Help icon"} ] } } ], "noinsights": "No insights available yet" } ], "warnings": { "message": "Hey, this is a warning" } } }} {{#warnings}} {{> core/notification_warning}} {{/warnings}} {{#infos}} {{> core/notification_info}} {{/infos}}
{{#models}} {{/models}}
{{#str}}analyticmodels, tool_analytics{{/str}}
{{#str}}target, tool_analytics{{/str}} {{#str}}enabled, tool_analytics{{/str}} {{#str}}indicators, tool_analytics{{/str}} {{#str}}modeltimesplitting, tool_analytics{{/str}} {{#str}}insights, tool_analytics{{/str}} {{#str}}actions{{/str}}
{{target}} {{#targethelp}} {{>core/help_icon}} {{/targethelp}} {{#enabled}} {{#pix}}i/checked, core, {{#str}}yes{{/str}}{{/pix}} {{/enabled}} {{^enabled}} {{#str}}no{{/str}} {{/enabled}}
    {{#indicators}}
  • {{name}} {{#help}} {{>core/help_icon}} {{/help}}
  • {{/indicators}}
{{#timesplitting}} {{timesplitting}} {{#timesplittinghelp}} {{>core/help_icon}} {{/timesplittinghelp}} {{/timesplitting}} {{^timesplitting}} {{#str}}notdefined, tool_analytics{{/str}} {{#timesplittinghelp}} {{>core/help_icon}} {{/timesplittinghelp}} {{/timesplitting}} {{! models_list renderer is responsible of sending one or the other}} {{#insights}} {{> core/single_select }} {{/insights}} {{#noinsights}} {{.}} {{/noinsights}} {{#actions}} {{> core/action_menu}} {{/actions}}