OpenSlides/openslides/agenda/static/templates/agenda/item-sort.html
Emanuel Schuetze b863c7ae13 Upgrade to angular-ui-tree 2.5.0
With >=2.10.0 there is an error "context is null" if start dragging.
With >=2.6.0 there is a missing angular 1.4 dependency.
2015-12-19 12:46:53 +01:00

35 lines
1003 B
HTML

<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>
</div>
<div class="details">
<p class="lead" translate>Drag and drop items to change the order of the agenda. Your modification will be saved immediately.</p>
<div ui-tree="treeOptions" id="tree-root">
<ol ui-tree-nodes ng-model="items">
<li ng-repeat="item in items" ui-tree-node ng-include="'nodes_renderer.html'">
</ol>
</div>
</div>
<!-- Nested node template -->
<script type="text/ng-template" id="nodes_renderer.html">
<div ui-tree-handle>
{{ item.item.item_number }}
{{ item.item.title }}
</div>
<ol ui-tree-nodes="" ng-model="item.children">
<li ng-repeat="item in item.children" ui-tree-node ng-include="'nodes_renderer.html'">
</ol>
</script>