2015-11-29 22:25:01 +01:00
|
|
|
<div class="header">
|
|
|
|
<div class="title">
|
|
|
|
<div class="submenu">
|
|
|
|
<a ui-sref="agenda.item.list" class="btn btn-sm btn-default">
|
|
|
|
<i class="fa fa-angle-double-left fa-lg"></i>
|
|
|
|
<translate>Back to overview</translate>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<h1 translate>Sort agenda</h1>
|
|
|
|
</div>
|
2015-03-09 15:40:54 +01:00
|
|
|
</div>
|
|
|
|
|
2015-11-29 22:25:01 +01:00
|
|
|
<div class="details">
|
2015-11-30 14:55:41 +01:00
|
|
|
<p class="lead" translate>Drag and drop items to change the order of the agenda. Your modification will be saved immediately.</p>
|
2015-03-09 15:40:54 +01:00
|
|
|
|
2015-12-18 22:17:17 +01:00
|
|
|
<div ui-tree="treeOptions" id="tree-root">
|
|
|
|
<ol ui-tree-nodes ng-model="items">
|
2015-11-29 22:25:01 +01:00
|
|
|
<li ng-repeat="item in items" ui-tree-node ng-include="'nodes_renderer.html'">
|
|
|
|
</ol>
|
|
|
|
</div>
|
2015-09-06 14:02:15 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2015-03-09 15:40:54 +01:00
|
|
|
<!-- Nested node template -->
|
|
|
|
<script type="text/ng-template" id="nodes_renderer.html">
|
|
|
|
<div ui-tree-handle>
|
2015-09-06 14:02:15 +02:00
|
|
|
{{ item.item.item_number }}
|
|
|
|
{{ item.item.title }}
|
2015-03-09 15:40:54 +01:00
|
|
|
</div>
|
2015-09-06 14:02:15 +02:00
|
|
|
<ol ui-tree-nodes="" ng-model="item.children">
|
|
|
|
<li ng-repeat="item in item.children" ui-tree-node ng-include="'nodes_renderer.html'">
|
2015-03-09 15:40:54 +01:00
|
|
|
</ol>
|
|
|
|
</script>
|
|
|
|
|