<%= l(:label_bulk_edit_selected_contacts) %>

<% form_tag(:action => 'bulk_update') do %> <%= @contacts.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
<%= l(:label_change_properties) %>

<%= text_field_tag('contact[company]', '') %>

<%= text_field_tag('contact[job_title]', '') %>

<% @contacts.first.custom_field_values.each do |value| %>

<% value.value = '' %> <%= custom_field_tag_with_label :contact, value %>

<% end -%>

<%= 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(@assignables, :id, :name)) %>

<%= l(:label_tags_plural) %>

<%= text_field_tag 'add_tag_list', '', :label => :field_contact_tag_names, :size => 10, :class => 'hol', :style => "display: none;" %>

<%= javascript_tag "observeTagsField('#{url_for(:controller => 'auto_completes', :action => 'contact_tags', :project_id => @project)}', 'add_tag_list', 'add_tag_candidates')" %>

<%= text_field_tag 'delete_tag_list', '', :label => :field_contact_tag_names, :size => 10, :class => 'hol', :style => "display: none;" %>

<%= javascript_tag "observeTagsField('#{url_for(:controller => 'auto_completes', :action => 'contact_tags', :project_id => @project)}', 'delete_tag_list', 'delete_tag_candidates')" %>
<% if @add_projects.any? %>
<%= l(:label_project_plural) %>

<%= select_tag 'add_projects_list[]', content_tag('option', l(:label_no_change_option), :value => '', :selected => 'selected') + project_tree_options_for_select(@add_projects), :multiple => false %>

<%= select_tag 'delete_projects_list[]', content_tag('option', l(:label_no_change_option), :value => '', :selected => 'selected') + project_tree_options_for_select(@add_projects), :multiple => false %>

<% end %>
<%= l(:field_notes) %> <%= text_area_tag 'note[content]', '', :cols => 60, :rows => 10, :class => 'wiki-edit' %> <%= wikitoolbar_for 'note_content' %>

<%= submit_tag l(:button_submit) %>

<% end %> <% content_for :header_tags do %> <%= javascript_include_tag :contacts, :plugin => 'redmine_contacts' %> <%= stylesheet_link_tag :contacts, :plugin => 'redmine_contacts' %> <% end %>