2015-05-14 08:44:38 +02:00
|
|
|
<script type="text/ng-template" id="cat_render.html">
|
2015-07-09 17:38:35 +02:00
|
|
|
<p ng-class="{'lead text-primary':cat.type=='menuCat'}">{{cat.title}}</p>
|
|
|
|
<hr ng-if="cat.nodes">
|
|
|
|
<ul class="list-group" ng-if="cat.nodes">
|
|
|
|
<li class="list-group-item" ng-repeat="cat in cat.nodes track by cat.id" ng-include="'cat_render.html'"></div>
|
2015-05-14 08:44:38 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="panel panel-default">
|
2015-07-09 17:38:35 +02:00
|
|
|
<div class="panel-heading">
|
2015-05-14 08:44:38 +02:00
|
|
|
<h3 class="panel-title" trspan="menuCategory"/>
|
|
|
|
</div>
|
2015-07-09 17:38:35 +02:00
|
|
|
<div class="panel-body">
|
2015-05-14 08:44:38 +02:00
|
|
|
<div class="input-group">
|
|
|
|
<label for="catTitle" id="catTitleL" class="input-group-addon">
|
|
|
|
<span trspan="categoryName"/>
|
|
|
|
</label>
|
|
|
|
<input id="catTitle" aria-describedby="catTitleL" class="form-control" ng-model="currentNode.title"/>
|
|
|
|
</div>
|
2015-07-09 17:38:35 +02:00
|
|
|
<br />
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h4 class="panel-title" trspan="appsInThisCat"/>
|
|
|
|
</div>
|
|
|
|
<ul class="list-group">
|
|
|
|
<li class="list-group-item" ng-repeat="cat in currentNode.nodes track by cat.id" ng-include="'cat_render.html'"></li>
|
|
|
|
</ul>
|
2015-05-14 08:44:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
buttons=[{
|
|
|
|
"title": "up"
|
|
|
|
},{
|
|
|
|
"title": "down"
|
|
|
|
},{
|
|
|
|
"title": "deleteEntry"
|
|
|
|
},{
|
|
|
|
"title": "newCat"
|
|
|
|
},{
|
|
|
|
"title": "newApp"
|
|
|
|
}];
|
|
|
|
</script>
|