- title h(@<%=parent_singular_name%>.title) = stylesheet( 'dust_<%=parent_singular_name%>','<%=parent_singular_name%>_uploadify') - content_for :head do = javascript_include_tag 'dragsort', 'dust_<%=parent_singular_name%>' = 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 - content_for :left do #uploadify %h3 Add <%=child_plural_class_name%> to #{ @<%=parent_singular_name%>.title.titleize} - form_for @new_<%=child_singular_name%>, :html => {:multipart => true} do |f| = f.hidden_field :<%=parent_singular_name%>_id, :value => @<%=parent_singular_name%>.id .uploadifyButtons = image_submit_tag "upload.png", :id => "<%=child_singular_name%>_submit", :name => 'commit' = f.file_field :file .clear