
-tag = tag_form
%li
  
  
  =check_box_tag "image_file[tag_ids][]", tag.id, (true if form.object.tag_ids.include?(tag.id))
  %label 
    =tag.name
  %ul
    =render :partial => "admin/tags/tag_form", :collection => tag.children, :locals => {:form => form} if tag.child_count > 0
  
  
  
  
  