
-tag = tag_search_form


-if @tags_ids.include?(tag.id) || (@tags_ids + tag.self_and_descendants.map(&:id).uniq).size > ((@tags_ids + tag.self_and_descendants.map(&:id).uniq).uniq).size

  %li
    
    =check_box_tag "tag_search_ids[]", tag.id , (true if params[:tag_search_ids] and params[:tag_search_ids].include?(tag.id.to_s))
    %label 
      =tag.name
    %ul
      =render :partial => "admin/tags/tag_search_form", :collection => tag.children if tag.child_count > 0 #, :locals => {:form => form}
  
  
  
  
