This repository has been archived on 2024-12-01. You can view files and clone it, but cannot push or open issues or pull requests.
redmine_rodax_crm/app/views/contacts_duplicates/index.html.erb
2012-01-03 16:18:32 +00:00

60 lines
2.0 KiB
Plaintext

<%= breadcrumb link_to(@contact.name, note_source_url(@contact)) %>
<div class="contact_data_header">
<table class="note_data">
<tr>
<td class="avatar"><%= link_to avatar_to(@contact, :size => "32"), note_source_url(@contact), :id => "avatar" %> </td>
<td class="name">
<h2 class="note_title">
<%= l(:label_dublicate_for_plural) %>: <%= @contact.name %>
</h2>
<p>
<%= h @contact.job_title %>
<%= " #{l(:label_at_company)} " unless (@contact.job_title.blank? or @contact.company.blank?) %>
<% if @contact.is_company && @contact.contact_company %>
<%= link_to @contact.contact_company.name, note_source_url(@contact.contact_company) %>
<% else %>
<%= h @contact.company %>
<% end %>
</p>
</td>
</tr>
</table>
</div>
<% form_tag({:controller => 'contacts_duplicates', :action => 'merge', :project_id => @project, :contact_id => @contact}) do %>
<div class="box" id="duplicates">
<%= content_tag('div', l(:notice_merged_warning), :class => "flash warning") %>
<ul>
<% @contact.duplicates.each do |contact| %>
<li>
<%= radio_button_tag "dublicate_id", contact.id %>
<%= avatar_to contact, :size => "16" %>
<%= link_to_source contact %>
<%= "(#{contact.job_title}) " unless contact.job_title.blank? %>
</li>
<% end %>
</ul>
</div>
<%= submit_tag l(:label_merge_dublicate_plural) %>
<% end %>
<% html_title "#{l(:label_dublicate_plural)} #{@contact.name}" %>
<% content_for :sidebar do %>
<%= render :partial => 'common/sidebar' %>
<%= render :partial => 'common/recently_viewed' %>
<% end %>
<% content_for :header_tags do %>
<%= javascript_include_tag :defaults %>
<%= javascript_include_tag :contacts, :plugin => 'redmine_contacts' %>
<%= stylesheet_link_tag :contacts, :plugin => 'redmine_contacts' %>
<%= stylesheet_link_tag :contacts_sidebar, :plugin => 'redmine_contacts' %>
<% end %>