menuCat.html 1.08 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 23
  </div>
</div>

Xavier Guimard's avatar
Xavier Guimard committed
24 25
<script type="text/menu">
[{
26 27
  "title": "up",
  "icon": "arrow-up"
28
},{
29 30
  "title": "down",
  "icon": "arrow-down"
31
},{
32 33
  "title": "deleteEntry",
  "icon": "minus-sign"
34
},{
35 36
  "title": "newCat",
  "icon": "plus-sign"
37
},{
38 39
  "title": "newApp",
  "icon": "plus-sign"
Xavier Guimard's avatar
Xavier Guimard committed
40
}]
41
</script>