-@tag_cats = TagCat.where(:annonce_cat_id => params[:annonce_cat_id])
-if (@annonce_cat and @annonce_cat.specific) or (@tag_cats and @tag_cats.size > 0)
  .inner
    -if @annonce_cat and @annonce_cat.specific
      =render :partial => "public/#{@annonce_cat.specific.tableize}/search_form" 
      =#%p=qit("annonce-nouveaux-criteres","Les nouveaux critères de recherche arrivent !")
    -if @tag_cats and @tag_cats.size > 0
      .tags
        =qit "filtre-label", "Filtres :"
  
        -@tag_cats.each do |tag|  
          %span
            =label_tag "tag_#{tag.id}", tag.name, :id => "label_tag_#{tag.id}", :class => "label label-default"+(" active" if params[:tags] and params[:tags].include?(tag.id.to_s)).to_s
            =check_box_tag :"tags[]", tag.id, (true if params[:tags] and params[:tags].include?(tag.id.to_s)), :id => "tag_#{tag.id}"
  :javascript
    $("#specific_search_container").show();
-else
  :javascript
    $("#specific_search_container").hide();