menuCat.html 1.36 KB
Newer Older
1
<script type="text/ng-template" id="cat_render.html">
2 3
  <p ng-class="{'cat-tree-category':cat.type=='menuCat'}">{{cat.title}}</p>
  <ul class="cat-tree"><li ng-repeat="cat in cat.nodes track by cat.id" ng-include="'cat_render.html'"></li></ul>
4 5 6
</script>

<div class="panel panel-default">
7
  <div class="panel-heading">
8
    <h3 class="panel-title" trspan="menuCategory"></h3>
9
  </div>
10 11
  <table class="table table-striped">
    <tr>
12
      <th><span trspan="categoryName"></span></th>
13 14 15
      <td><input id="catTitle" aria-describedby="catTitleL" class="form-control" ng-model="currentNode.title"/></td> 
    </tr>
  </table>
16
  <div class="panel-body">
17
    <h4 trspan="appsInThisCat"></h4>
18 19 20
    <ul class="cat-tree">
      <li ng-repeat="cat in currentNode.nodes track by cat.id" ng-include="'cat_render.html'"></li>
    </ul>
21 22
  </div>
</div>
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
<script type="text/menu">
[{
  "title": "up",
  "icon": "arrow-up"
},{
  "title": "down",
  "icon": "arrow-down"
},{
  "title": "deleteEntry",
  "icon": "minus-sign"
},{
  "title": "newApp",
  "icon": "plus-sign"
}]
</script>
<!-- Uncomment this snippet to enable sub categories
Xavier Guimard's avatar
Xavier Guimard committed
39 40
<script type="text/menu">
[{
41 42
  "title": "up",
  "icon": "arrow-up"
43
},{
44 45
  "title": "down",
  "icon": "arrow-down"
46
},{
47 48
  "title": "deleteEntry",
  "icon": "minus-sign"
49
},{
50 51
  "title": "newCat",
  "icon": "plus-sign"
52
},{
53 54
  "title": "newApp",
  "icon": "plus-sign"
Xavier Guimard's avatar
Xavier Guimard committed
55
}]
56
</script>
57
-->