<%= l(:label_bulk_edit_selected_contracts) %>

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

<%= select_tag('contract[status_id]', content_tag('option', l(:label_no_change_option), :value => '') + options_from_collection_for_select(@available_statuses, :id, :name)) %>

<% end %> <% if @available_categories.any? %>

<%= select_tag('contract[category_id]', content_tag('option', l(:label_no_change_option), :value => '') + content_tag('option', l(:label_none), :value => 'none') + options_from_collection_for_select(@available_categories, :id, :name)) %>

<% end %>

<%= select_tag('contract[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)) %>

<%= select_tag "contract[currency]", options_for_select(collection_for_currencies_select.insert(0, ['', '']), '') %>

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

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

<% 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 %>