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>;.
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
>
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
>
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
>