stylesheet( ‘dust_<%=parent_singular_name%>’,‘<%=parent_singular_name%>_uploadify’)

render :partial => “upload_script”

.item

.ui-widget.ui-helper-clearfix{:style => "float:right"}
  = link_to "", edit_<%=parent_singular_name%>_path(@<%=parent_singular_name%>), :class => 'ui-icon ui-icon-pencil edit tip', :title => "Edit This Item"
  = link_to "", @<%=parent_singular_name%>, :confirm => 'Are you sure?', :method => :delete, :class => 'ui-icon ui-icon-close destroy tip', :title => "Destroy This Item"

%h1= link_to @<%=parent_singular_name%>.title, view_<%=parent_singular_name%>_path(@<%=parent_singular_name%>.filename)
= simple_format(h(@<%=parent_singular_name%>.desc))

.item

.manage
  %br/
  = link_to image_tag('save_position.png'), <%=child_plural_name%>_path, :id => 'order_items'
%h3{:id => "<%=child_plural_name%>_count"}
  = pluralize(@<%=parent_singular_name%>.<%=child_plural_name%>.size, "<%=child_class_name%>")
  - unless @<%=parent_singular_name%>.<%=child_plural_name%>.empty? 
    |
    = link_to "Select <%=child_plural_class_name%> For Deletion", manage_<%=child_plural_name%>_path(@<%=parent_singular_name%>, :format => 'html'), :class => 'settings'
%p
  Drag <%=child_plural_name%> to reorder them. Don't forget to hit the save order button when you are done.
%ul{:class => "sortable <%=child_plural_name%>"}
  = render :partial => @<%=parent_singular_name%>.<%=child_plural_name%>.roots, :<%=child_singular_name%> => @<%=child_singular_name%>
.clear