Commit dfe1d7c0 authored by Clément OUDOT's avatar Clément OUDOT

Work on applications and categories (#820)

parent 05fe88d9
......@@ -45,6 +45,15 @@
vertical-align: middle;
}
/* Category tree */
ul.cat-tree {
list-style-type: square;
}
p.cat-tree-category {
font-weight: bold;
}
/* Main window */
html,
......
<script type="text/ng-template" id="cat_renderer.html">
<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_renderer.html'"></li>
</ul>
<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_renderer.html'"></li></ul>
</script>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{{translateTitle(currentNode)}}</h3>
</div>
<ul class="list-group">
<li class="list-group-item" ng-repeat="cat in currentNode.nodes track by cat.id" ng-include="'cat_renderer.html'"></li>
<div class="panel-body">
<ul class="cat-tree">
<li ng-repeat="cat in currentNode.nodes track by cat.id" ng-include="'cat_renderer.html'"></li>
</ul>
</div>
</div>
<script type="text/javascript">
buttons=[{
"title": "newCat"
"title": "newCat",
"icon": "plus-sign"
}];
</script>
......@@ -2,49 +2,56 @@
<div class="panel-heading">
<h3 class="panel-title" trspan="application"/>
</div>
<div class="panel-body input-group">
<label for="iname" id="lname" class="input-group-addon"><span trspan="name"/> :</label>
<input id="iname" aria-describedby="lname" class="form-control" ng-model="currentNode.title"/>
</div>
<div class="panel-body input-group">
<label for="idesc" id="ldesc" class="input-group-addon"><span trspan="description"/> :</label>
<input id="idesc" aria-describedby="ldesc" class="form-control" ng-model="currentNode.data.description"/>
</div>
<div class="panel-body input-group">
<label for="iuri" id="luri" class="input-group-addon"><span trspan="uri"/> :</label>
<input id="iuri" aria-describedby="luri" class="form-control" ng-model="currentNode.data.uri"/>
</div>
<div class="panel-body input-group">
<label for="ilogo" id="llogo" class="input-group-addon"><span trspan="logo"/> :</label>
<input id="ilogo" aria-describedby="llogo" class="form-control" ng-model="currentNode.data.logo"/>
</div>
<div class="panel-body input-group">
<span class="input-group-addon"><span trspan="applicationDisplay"/> :</span>
<div class="input-group-solid">
<label class="radio-inline">
<input id="iOn" type="radio" value="on" ng-model="currentNode.data.display" />
<span trspan="enabled"/>
</label>
<label class="radio-inline">
<input id="iOff" type="radio" value="off" ng-model="currentNode.data.display" />
<span trspan="disabled">
</label>
<label class="radio-inline">
<input id="iAuto" type="radio" value="auto" ng-model="currentNode.data.display" />
<span trspan="auto">
</label>
</div>
</div>
<table class="table table-striped">
<tr>
<th><span trspan="name"/></th>
<td><input id="iname" class="form-control" ng-model="currentNode.title"/></td>
</tr>
<tr>
<th><span trspan="description"/></th>
<td><input id="idesc" class="form-control" ng-model="currentNode.data.description"/></td>
</tr>
<tr>
<th><span trspan="uri"/></th>
<td><input id="iuri" class="form-control" ng-model="currentNode.data.uri"/></td>
</tr>
<tr>
<th><span trspan="logo"/></th>
<td><input id="ilogo" class="form-control" ng-model="currentNode.data.logo"/></td>
</tr>
<tr>
<th><span trspan="applicationDisplay"/></th>
<td>
<div class="input-group-solid">
<label class="radio-inline">
<input id="iOn" type="radio" value="on" ng-model="currentNode.data.display" />
<span trspan="enabled"/>
</label>
<label class="radio-inline">
<input id="iOff" type="radio" value="off" ng-model="currentNode.data.display" />
<span trspan="disabled">
</label>
<label class="radio-inline">
<input id="iAuto" type="radio" value="auto" ng-model="currentNode.data.display" />
<span trspan="auto">
</label>
</div>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
buttons=[{
"title": "up"
"title": "up",
"icon": "arrow-up"
},{
"title": "down"
"title": "down",
"icon": "arrow-down"
},{
"title": "deleteEntry"
"title": "deleteEntry",
"icon": "minus-sign"
},{
"title": "newApp"
"title": "newApp",
"icon": "plus-sign"
}];
</script>
<script type="text/ng-template" id="cat_render.html">
<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>
<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>
</script>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title" trspan="menuCategory"/>
</div>
<table class="table table-striped">
<tr>
<th><span trspan="categoryName"/></th>
<td><input id="catTitle" aria-describedby="catTitleL" class="form-control" ng-model="currentNode.title"/></td>
</tr>
</table>
<div class="panel-body">
<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>
<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>
</div>
<h4 trspan="appsInThisCat"/>
<ul class="cat-tree">
<li ng-repeat="cat in currentNode.nodes track by cat.id" ng-include="'cat_render.html'"></li>
</ul>
</div>
</div>
<script type="text/javascript">
buttons=[{
"title": "up"
"title": "up",
"icon": "arrow-up"
},{
"title": "down"
"title": "down",
"icon": "arrow-down"
},{
"title": "deleteEntry"
"title": "deleteEntry",
"icon": "minus-sign"
},{
"title": "newCat"
"title": "newCat",
"icon": "plus-sign"
},{
"title": "newApp"
"title": "newApp",
"icon": "plus-sign"
}];
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment