support reordering of units inside subsection list

This commit is contained in:
Chris Dodge
2012-10-04 13:44:46 -04:00
parent d93bf63dff
commit 48d84c2e3d
2 changed files with 29 additions and 2 deletions

View File

@@ -3,8 +3,8 @@
<!--
This def will enumerate through a passed in subsection and list all of the units
-->
<%def name="enum_units(subsection, actions=True, selected=None)">
<ol>
<%def name="enum_units(subsection, actions=True, selected=None, sortable=True)">
<ol ${'class="sortable-unit-list"' if sortable else ''} data-subsection-id="${subsection.location}">
% for unit in subsection.get_children():
<li class="leaf unit" data-id="${unit.location}">
<%