<% html_title "#{l(:label_google_contact_plural)}" %>
<%= link_to l(:label_drop_token), {:controller => 'google_contacts', :action => 'drop_token', :project_id => @project}, :class => 'icon icon-link-break' %>

<%= "#{l(:label_google_contact_plural)}" %>

<%= form_tag(params, :method => :get, :id => "query_form") do %> <%= hidden_field_tag('project_id', @project.to_param) if @project %> <% no_filters = params[:search].blank? && params[:group].blank? %>
<%= l(:label_filter_plural) %>

<%= label_tag l(:label_search)%> <%= text_field_tag(:search, params[:search], :size => "35")%>

<%= label_tag l(:label_google_group)%> <%= select_tag :group, options_for_select([[l(:label_google_all_contacts), '']] + @google_groups.collect{ |g| [g[:title], g[:id]] }, params[:group]) %>

<%= check_box_tag(:show_all, value = "1", checked = params[:show_all]) %><%= label_tag l(:label_contact_view_all)%>

<% end %>

<%= link_to l(:button_apply), "#", :onclick=>"$('#query_form').submit()", :class => 'icon icon-checked' %> <%= link_to l(:button_clear), {:project_id => @project, :set_filter => 1 }, :method => :get, :update => "contact_list", :class => 'icon icon-reload' %>

<%= form_tag({:action => :import_contacts}) do -%> <%= hidden_field_tag('project_id', @project.to_param) if @project %>
<%= l(:label_change_properties) %>

<%= text_field_tag 'add_tag_list', "google-import-#{Time.now.strftime('%Y-%m-%d-%H:%M:%S')}", :size => 10, :class => 'hol' %><%= tagsedit_for('#add_tag_list', Contact.available_tags(:project => @project).map(&:name).join("\',\'").html_safe ) %>

<%= select_tag('contact[assigned_to_id]', content_tag('option', l(:label_no_change_option), :value => '') + content_tag('option', l(:label_nobody), :value => 'none') + options_from_collection_for_select(@project.assignable_users, :id, :name)) %>

<%= submit_tag l(:button_import_contacts), :class => "small", :name => nil %>

<%= render :partial => 'list' %>
<% end %> <% content_for :header_tags do %> <%= javascript_include_tag :contacts, :plugin => 'redmine_contacts' %> <%= stylesheet_link_tag :contacts, :plugin => 'redmine_contacts' %> <% end %> <%= context_menu issues_context_menu_path %>