git-svn-id: https://192.168.0.254/svn/Rodax.redmine_rodax_crm/trunk@2 ff88604e-da85-c949-a72f-fc3aa3ba3724
60 lines
2.0 KiB
Plaintext
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 %>
|