| 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_analytics/invalid_analysables
 | 
        
           |  |  | 19 |   | 
        
           |  |  | 20 |     Template for invalid analysables.
 | 
        
           |  |  | 21 |   | 
        
           |  |  | 22 |     Classes required for JS:
 | 
        
           |  |  | 23 |     * none
 | 
        
           |  |  | 24 |   | 
        
           |  |  | 25 |     Data attributes required for JS:
 | 
        
           |  |  | 26 |     * none
 | 
        
           |  |  | 27 |   | 
        
           |  |  | 28 |     Context variables required for this template:
 | 
        
           |  |  | 29 |     * none
 | 
        
           |  |  | 30 |   | 
        
           |  |  | 31 |     Example context (json):
 | 
        
           |  |  | 32 |     {
 | 
        
           |  |  | 33 |         "modelname": "Not engaging courses",
 | 
        
           |  |  | 34 |         "analysables": [
 | 
        
           |  |  | 35 |             {
 | 
        
           |  |  | 36 |                 "url": "<a href=\"#\">Maths</a>",
 | 
        
           |  |  | 37 |                 "validtraining": "Ongoing course",
 | 
        
           |  |  | 38 |                 "validprediction": "Not enough students activity"
 | 
        
           |  |  | 39 |             }, {
 | 
        
           |  |  | 40 |                 "url": "<a href=\"#\">Psichology</a>",
 | 
        
           |  |  | 41 |                 "validtraining": "No students",
 | 
        
           |  |  | 42 |                 "validprediction": "No students"
 | 
        
           |  |  | 43 |             }
 | 
        
           |  |  | 44 |         ]
 | 
        
           |  |  | 45 |     }
 | 
        
           |  |  | 46 | }}
 | 
        
           |  |  | 47 |   | 
        
           |  |  | 48 | <div class="box">
 | 
        
           |  |  | 49 |     <h3>{{#str}}modelinvalidanalysables, tool_analytics, {{modelname}}{{/str}}</h3>
 | 
        
           |  |  | 50 |     <div>{{#str}}invalidanalysablesinfo, tool_analytics{{/str}}</div>
 | 
        
           |  |  | 51 |     {{#noanalysables}}
 | 
        
           |  |  | 52 |         <div class="mt-2 mb-1">
 | 
        
           |  |  | 53 |             {{> core/notification_info}}
 | 
        
           |  |  | 54 |         </div>
 | 
        
           |  |  | 55 |     {{/noanalysables}}
 | 
        
           |  |  | 56 |     {{^noanalysables}}
 | 
        
           |  |  | 57 |         <div class="mt-2 mb-1">
 | 
        
           |  |  | 58 |             <span>{{#prev}}{{> core/single_button}}{{/prev}}</span>
 | 
        
           |  |  | 59 |             <span>{{#next}}{{> core/single_button}}{{/next}}</span>
 | 
        
           |  |  | 60 |         </div>
 | 
        
           |  |  | 61 |         <table class="generaltable fullwidth">
 | 
        
           |  |  | 62 |             <caption class="accesshide">{{#str}}invalidanalysablestable, tool_analytics{{/str}}</caption>
 | 
        
           |  |  | 63 |             <thead>
 | 
        
           |  |  | 64 |                 <tr>
 | 
        
           |  |  | 65 |                     <th scope="col">{{#str}}name{{/str}}</th>
 | 
        
           |  |  | 66 |                     <th scope="col">{{#str}}invalidtraining, tool_analytics{{/str}}</th>
 | 
        
           |  |  | 67 |                     <th scope="col">{{#str}}invalidprediction, tool_analytics{{/str}}</th>
 | 
        
           |  |  | 68 |                 </tr>
 | 
        
           |  |  | 69 |             </thead>
 | 
        
           |  |  | 70 |             <tbody>
 | 
        
           |  |  | 71 |             {{#analysables}}
 | 
        
           |  |  | 72 |                 <tr>
 | 
        
           |  |  | 73 |                     <td>{{{url}}}</td>
 | 
        
           |  |  | 74 |                     <td>{{validtraining}}</td>
 | 
        
           |  |  | 75 |                     <td>{{validprediction}}</td>
 | 
        
           |  |  | 76 |                 </tr>
 | 
        
           |  |  | 77 |             {{/analysables}}
 | 
        
           |  |  | 78 |             </tbody>
 | 
        
           |  |  | 79 |         </table>
 | 
        
           |  |  | 80 |         <div class="mt-1 mb-2">
 | 
        
           |  |  | 81 |             <span>{{#prev}}{{> core/single_button}}{{/prev}}</span>
 | 
        
           |  |  | 82 |             <span>{{#next}}{{> core/single_button}}{{/next}}</span>
 | 
        
           |  |  | 83 |         </div>
 | 
        
           |  |  | 84 |     {{/noanalysables}}
 | 
        
           |  |  | 85 | </div>
 |