Make all of section/subsection/unit draggable.

This commit is contained in:
Peter Fogg
2013-08-06 14:32:26 -04:00
committed by cahrens
parent fd2f720adb
commit a0deac0399
3 changed files with 8 additions and 11 deletions

View File

@@ -19,7 +19,7 @@ This def will enumerate through a passed in subsection and list all of the units
else:
selected_class = ''
%>
<div class="section-item ${selected_class}">
<div class="section-item unit-drag-handle ${selected_class}">
<a href="${reverse('edit_unit', args=[unit.location])}" class="${unit_state}-item">
<span class="${unit.scope_ids.block_type}-icon"></span>
<span class="unit-name">${unit.display_name_with_default}</span>
@@ -27,7 +27,6 @@ This def will enumerate through a passed in subsection and list all of the units
% if actions:
<div class="item-actions">
<a href="#" data-tooltip="Delete this unit" class="delete-button" data-id="${unit.location}"><span class="delete-icon"></span></a>
<a href="#" data-tooltip="Drag to sort" class="drag-handle unit-drag-handle"></a>
</div>
% endif
</div>