| 1 | efrain | 1 | {{!
 | 
        
           |  |  | 2 |     This file is part of Moodle - http://moodle.org/
 | 
        
           |  |  | 3 |     Moodle is free software: you can redistribute it and/or modify
 | 
        
           |  |  | 4 |     it under the terms of the GNU General Public License as published by
 | 
        
           |  |  | 5 |     the Free Software Foundation, either version 3 of the License, or
 | 
        
           |  |  | 6 |     (at your option) any later version.
 | 
        
           |  |  | 7 |     Moodle is distributed in the hope that it will be useful,
 | 
        
           |  |  | 8 |     but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
        
           |  |  | 9 |     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
        
           |  |  | 10 |     GNU General Public License for more details.
 | 
        
           |  |  | 11 |     You should have received a copy of the GNU General Public License
 | 
        
           |  |  | 12 |     along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 | 
        
           |  |  | 13 | }}
 | 
        
           |  |  | 14 | {{!
 | 
        
           |  |  | 15 |     @template mod_scorm/user_report_actionbar
 | 
        
           |  |  | 16 |   | 
        
           |  |  | 17 |     Actions bar for the user reports page UI.
 | 
        
           |  |  | 18 |     Classes required for JS:
 | 
        
           |  |  | 19 |     * none
 | 
        
           |  |  | 20 |     Data attributes required for JS:
 | 
        
           |  |  | 21 |     * none
 | 
        
           |  |  | 22 |     Context variables required for this template:
 | 
        
           |  |  | 23 |     * see mod/scorm/classes/output/userreportsactionbar.php
 | 
        
           |  |  | 24 |     Example context (json):
 | 
        
           |  |  | 25 |     {
 | 
        
           |  |  | 26 |         "userreport": {
 | 
        
           |  |  | 27 |             "id": "url_select_test",
 | 
        
           |  |  | 28 |             "options": [
 | 
        
           |  |  | 29 |                 {"name": "Learning objects", "value": "/mod/scorm/report/userreport.php?id=70&user=13&attempt=1"},
 | 
        
           |  |  | 30 |                 {"name": "Interactions", "value": "/mod/scorm/report/userreportinteractions.php?id=70&user=13&attempt=1"}
 | 
        
           |  |  | 31 |             ]
 | 
        
           |  |  | 32 |         },
 | 
        
           |  |  | 33 |         "backurl": "http://localhost/moodle/mod/scorm/report.php?id=70&mode=interactions",
 | 
        
           |  |  | 34 |         "heading": "Sub page heading"
 | 
        
           |  |  | 35 |     }
 | 
        
           |  |  | 36 | }}
 | 
        
           |  |  | 37 | <div class="container-fluid tertiary-navigation">
 | 
        
           |  |  | 38 |     <div class="row">
 | 
        
           |  |  | 39 |         <div class="navitem">
 | 
        
           |  |  | 40 |             <a class="btn btn-secondary mr-2" href="{{backurl}}">{{#str}}back, core {{/str}}</a>
 | 
        
           |  |  | 41 |         </div>
 | 
        
           |  |  | 42 |         {{#userreport}}
 | 
        
           |  |  | 43 |             <div class="navitem">
 | 
        
           |  |  | 44 |                 {{>core/url_select}}
 | 
        
           |  |  | 45 |             </div>
 | 
        
           |  |  | 46 |         {{/userreport}}
 | 
        
           |  |  | 47 |     </div>
 | 
        
           |  |  | 48 | </div>
 | 
        
           |  |  | 49 | {{#heading}}<h2>{{heading}}</h2>{{/heading}}
 |