<% if @deal.all_contacts.any? %>
<div id="deal_contacts">
	<div class="contextual">
		<%= link_to l(:button_add),
			{:controller => 'deal_contacts',
			:action => 'search',
	 		:project_id => @project,
			:deal_id => @deal},
			:remote => true if User.current.allowed_to?({:controller => 'deal_contacts', :action => 'add'}, @project) %>
	</div>

	<h3><%= l(:label_crm_contractor_plural) %></h3>

	<%= render :partial => 'common/contact_data', :object => @deal.contact if @deal.contact %>
	<% @deal.related_contacts.each do |contact| %>
		<%= render :partial => 'common/contact_data', :object => contact, :locals => {:actions => remove_contractor_link(contact)} %>
	<% end %>
</div>
<% end %>
