<% if !@tag %> <% form_tag(params, :id => "query_form") do %> <%= hidden_field_tag('project_id', @project.to_param) if @project %>

<%= l(:label_contact_note_plural) %> <%= label_tag :search_note, l(:label_search), :id => "search_overlabel" %> <%= text_field_tag(:search_note, params[:search_note], :autocomplete => "off", :size => "35", :class => "live_search_field", :onfocus => "Element.hide('search_overlabel'); return false;", :onblur => "if (this.value == '') {Element.show('search_overlabel');}" ) %> <%= observe_field("search_note", :frequency => 1, :update => 'contacts_notes', :url => {:controller => 'contacts', :action => 'contacts_notes', :project_id => @project }, :with => "Form.serialize('query_form')") %>

<% if false %>

<%= link_to_remote l(:button_apply), { :url => {}, :update => "deal_list", :with => "Form.serialize('query_form')" }, :class => 'icon icon-checked' %> <%= link_to l(:button_clear), {:project_id => @project }, :method => :get, :update => "deal_list", :class => 'icon icon-reload' %>

<% end %> <% end %> <% else %>

<%= "#{l(:label_contact_tag)}(#{@notes_pages.item_count}): #{render(:partial => "tags_item", :collection => @tag, :locals => {:is_note => false} )}" %>

<% end %>
<%= render :partial => 'notes/notes_list' %>
<% content_for :sidebar do %> <%= render :partial => 'common/sidebar' %>

<%= l(:label_tags_plural) %>

<%= render :partial => "tags_item", :collection => @tags, :locals => {:is_note => true, :multiple => false} %>
<%= render :partial => 'common/recently_viewed' %> <% end %> <% content_for(:header_tags) do %> <%= stylesheet_link_tag :contacts, :plugin => 'redmine_contacts' %> <%= stylesheet_link_tag :contacts_sidebar, :plugin => 'redmine_contacts' %> <% end %>