had 2 change this a tag to a div tag to ensure both tab layout styles worked
[openemr.git] / interface / main / tabs / templates / menu_template.php
blobcf28acdad3ac43f777c1142495ff8bb260498e0c
1 <?php
2 /**
3 * Copyright (C) 2016 Kevin Yeh <kevin.y@integralemr.com>
5 * LICENSE: This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 3
8 * of the License, or (at your option) any later version.
9 * This program 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 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
16 * @package OpenEMR
17 * @author Kevin Yeh <kevin.y@integralemr.com>
18 * @link http://www.open-emr.org
22 <script type="text/html" id="menu-action">
23 <i data-bind="css: icon,text:helperText" class="fa closeButton"></i>
24 <div class='menuLabel' data-bind="text:label,click: menuActionClick,css: {menuDisabled: ! enabled()}"></div>
26 </script>
27 <script type="text/html" id="menu-header">
28 <i data-bind="css: icon" class="fa closeButton"></i>
29 <div class="menuSection">
30 <div class='menuLabel' data-bind="text:label"></div>
31 <ul class="menuEntries" name="menuEntries" data-bind="foreach: children">
32 <li data-bind="template: {name:header ? 'menu-header' : 'menu-action', data: $data }"></li>
33 </ul>
34 </div>
35 </script>
36 <script type="text/html" id="menu-template">
37 <div style="margin-right:200px;">
38 <div class='appMenu' data-bind="foreach: menu">
39 <span data-bind="template: {name:header ? 'menu-header' : 'menu-action', data: $data }"></span>
40 </div>
41 </div>
42 </script>