git-svn-id: https://192.168.0.254/svn/Rodax.redmine_rodax_crm/trunk@4 ff88604e-da85-c949-a72f-fc3aa3ba3724
81 lines
2.6 KiB
Plaintext
81 lines
2.6 KiB
Plaintext
<h2><%= l(:label_bulk_edit_selected_contracts) %></h2>
|
|
|
|
|
|
<div class="box" id="duplicates">
|
|
<ul>
|
|
<% @contracts.each do |contract| %>
|
|
<li>
|
|
<%= avatar_to contract, :size => "16" %>
|
|
<%= link_to contract.full_name, polymorphic_url(contract) %>
|
|
<%= "(#{contract_price(contract)}) " unless contract.price.blank? %>
|
|
<% if contract.status %>
|
|
<span class="contract-status" style = <%= "background-color:#{contract.status.color_name};color:white;" %> >
|
|
<%= h contract.status %>
|
|
</span>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
<% form_tag(:action => 'bulk_update') do %>
|
|
<%= @contracts.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
|
|
<div class="box tabular">
|
|
<fieldset class="attributes">
|
|
<legend><%= l(:label_change_properties) %></legend>
|
|
|
|
<% if @available_statuses.any? %>
|
|
<p>
|
|
<label><%= l(:field_status) %></label>
|
|
<%= select_tag('contract[status_id]', content_tag('option', l(:label_no_change_option), :value => '') +
|
|
options_from_collection_for_select(@available_statuses, :id, :name)) %>
|
|
</p>
|
|
<% end %>
|
|
|
|
|
|
<% if @available_categories.any? %>
|
|
<p>
|
|
<label><%= l(:field_category) %></label>
|
|
<%= 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)) %>
|
|
</p>
|
|
<% end %>
|
|
|
|
<p>
|
|
<label><%= l(:label_assigned_to) %></label>
|
|
<%= 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)) %>
|
|
</p>
|
|
<p>
|
|
<label><%= l(:field_contract_currency) %></label>
|
|
<%= select_tag "contract[currency]", options_for_select(collection_for_currencies_select.insert(0, ['', '']), '') %>
|
|
|
|
</p>
|
|
|
|
|
|
<% @contracts.first.custom_field_values.each do |value| %>
|
|
<p>
|
|
<% value.value = '' %>
|
|
<%= custom_field_tag_with_label :contact, value %>
|
|
</p>
|
|
<% end -%>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset><legend><%= l(:field_notes) %></legend>
|
|
<%= text_area_tag 'note[content]', '', :cols => 60, :rows => 10, :class => 'wiki-edit' %>
|
|
<%= wikitoolbar_for 'note_content' %>
|
|
</fieldset>
|
|
</div>
|
|
|
|
<p><%= submit_tag l(:button_submit) %></p>
|
|
<% end %>
|
|
|
|
<% content_for :header_tags do %>
|
|
<%= javascript_include_tag :contacts, :plugin => 'redmine_contacts' %>
|
|
<%= stylesheet_link_tag :contacts, :plugin => 'redmine_contacts' %>
|
|
<% end %>
|