| 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 tiny_equation/modal_library
 | 
        
           |  |  | 19 |   | 
        
           |  |  | 20 |     Equation library template.
 | 
        
           |  |  | 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 |   | 
        
           |  |  | 30 |     Example context (json):
 | 
        
           |  |  | 31 |     {
 | 
        
           |  |  | 32 |         "elementid": "exampleId:1",
 | 
        
           |  |  | 33 |         "elementidescaped": "exampleId\\:1"
 | 
        
           |  |  | 34 |     }
 | 
        
           |  |  | 35 | }}
 | 
        
           |  |  | 36 | <div class="tiny_equation_library">
 | 
        
           |  |  | 37 |     <ul class="root nav nav-tabs mb-1" role="tablist">
 | 
        
           |  |  | 38 |         {{#libraries}}
 | 
        
           |  |  | 39 |             <li class="nav-item">
 | 
        
           |  |  | 40 |                 <a class="nav-link{{#active}} active{{/active}}"{{!
 | 
        
           |  |  | 41 |                    }}{{#active}} aria-selected="true"{{/active}}{{!
 | 
        
           |  |  | 42 |                    }}{{^active}} aria-selected="false" tabindex="-1"{{/active}}{{!
 | 
        
           |  |  | 43 |                    }} href="#{{elementid}}_tiny_equation_group_{{key}}"{{!
 | 
        
           | 1441 | ariadna | 44 |                    }} data-bs-target="#{{elementidescaped}}_tiny_equation_group_{{key}}"
 | 
        
           |  |  | 45 |                    role="tab" data-bs-toggle="tab"
 | 
        
           | 1 | efrain | 46 |                 >
 | 
        
           |  |  | 47 |                     {{groupname}}
 | 
        
           |  |  | 48 |                 </a>
 | 
        
           |  |  | 49 |             </li>
 | 
        
           |  |  | 50 |         {{/libraries}}
 | 
        
           |  |  | 51 |     </ul>
 | 
        
           |  |  | 52 |     <div class="tab-content mb-1 tiny_equation_groups">
 | 
        
           |  |  | 53 |         {{#libraries}}
 | 
        
           |  |  | 54 |             <div data-medium-type="link" class="tab-pane{{#active}} active{{/active}}"
 | 
        
           |  |  | 55 |                  id="{{elementid}}_tiny_equation_group_{{key}}">
 | 
        
           |  |  | 56 |                 <div role="toolbar">
 | 
        
           |  |  | 57 |                     {{#elements}}
 | 
        
           |  |  | 58 |                         <button class="btn btn-secondary tiny_equation_btn" data-tex="{{.}}" aria-label="{{.}}" title="{{.}}">
 | 
        
           |  |  | 59 |                             {{delimiters.start}} {{.}} {{delimiters.end}}
 | 
        
           |  |  | 60 |                         </button>
 | 
        
           |  |  | 61 |                     {{/elements}}
 | 
        
           |  |  | 62 |                 </div>
 | 
        
           |  |  | 63 |             </div>
 | 
        
           |  |  | 64 |         {{/libraries}}
 | 
        
           |  |  | 65 |     </div>
 | 
        
           |  |  | 66 | </div>
 |