commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / templates / CRM / Contact / Page / DedupeFind.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25 *}
26 {if $action eq 2 || $action eq 16}
27 <div class="form-item">
28 <table class='pagerDisplay'>
29 <thead>
30 <tr class="columnheader"><th id="nosort">{ts}Contact{/ts} 1</th><th id="nosort">{ts}Contact{/ts} 2 ({ts}Duplicate{/ts})</th><th id="nosort">{ts}Threshold{/ts}</th><th id="nosort">&nbsp;</th></tr>
31 </thead>
32 </table>
33 {include file="CRM/common/jsortable.tpl" sourceUrl=$sourceUrl useAjax=1 }
34 {if $cid}
35 <table style="width: 45%; float: left; margin: 10px;">
36 <tr class="columnheader"><th colspan="2">{ts 1=$main_contacts[$cid]}Merge %1 with{/ts}</th></tr>
37 {foreach from=$dupe_contacts[$cid] item=dupe_name key=dupe_id}
38 {if $dupe_name}
39 {capture assign=link}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$dupe_id"}">{$dupe_name}</a>{/capture}
40 {capture assign=merge}<a href="{crmURL p='civicrm/contact/merge' q="reset=1&cid=$cid&oid=$dupe_id"}">{ts}merge{/ts}</a>{/capture}
41 <tr class="{cycle values="odd-row,even-row"}">
42 <td>{$link}</td>
43 <td style="text-align: right">{$merge}</td>
44 <td style="text-align: right"><a class='crm-notDuplicate' href="#" title={ts}not a duplicate{/ts} onClick="processDupes( {$main.srcID}, {$main.dstID}, 'dupe-nondupe' );return false;">{ts}not a duplicate{/ts}</a></td>
45 </tr>
46 {/if}
47 {/foreach}
48 </table>
49 {/if}
50 </div>
51
52 {if $context eq 'search'}
53 {crmButton href=$backURL icon="close"}{ts}Done{/ts}{/crmButton}
54 {else}
55 {if $gid}
56 {capture assign=backURL}{crmURL p="civicrm/contact/dedupefind" q="reset=1&rgid=`$rgid`&gid=`$gid`&action=renew" a=1}{/capture}
57 {else}
58 {capture assign=backURL}{crmURL p="civicrm/contact/dedupefind" q="reset=1&rgid=`$rgid`&action=renew" a=1}{/capture}
59 {/if}
60 <a href="{$backURL}" title="{ts}Refresh List of Duplicates{/ts}" onclick="return confirm('{ts escape="js"}This will refresh the duplicates list. Click OK to proceed.{/ts}');" class="button">
61 <span><span class="icon ui-icon-refresh"></span> {ts}Refresh Duplicates{/ts}</span>
62 </a>
63
64 {if $gid}
65 {capture assign=backURL}{crmURL p="civicrm/contact/dedupefind" q="reset=1&rgid=`$rgid`&gid=`$gid`&action=map" a=1}{/capture}
66 {else}
67 {capture assign=backURL}{crmURL p="civicrm/contact/dedupefind" q="reset=1&rgid=`$rgid`&action=map" a=1}{/capture}
68 {/if}
69 <a href="{$backURL}" title="{ts}Batch Merge Duplicate Contacts{/ts}" onclick="return confirm('{ts escape="js"}This will run the batch merge process on the listed duplicates. The operation will run in safe mode - only records with no direct data conflicts will be merged. Click OK to proceed if you are sure you wish to run this operation.{/ts}');" class="button">
70 <span><div class="icon ui-icon-script"></div> {ts}Batch Merge Duplicates{/ts}</span>
71 </a>
72
73 {capture assign=backURL}{crmURL p="civicrm/contact/deduperules" q="reset=1" a=1}{/capture}
74 <a href="{$backURL}" class="button crm-button-type-cancel">
75 <span><div class="icon ui-icon-close"></div> {ts}Done{/ts}</span>
76 </a>
77 {/if}
78 <div style="clear: both;"></div>
79 {else}
80 {include file="CRM/Contact/Form/DedupeFind.tpl"}
81 {/if}
82
83 {* process the dupe contacts *}
84 {include file='CRM/common/dedupe.tpl'}
85 {literal}
86 <script type="text/javascript">
87 var oTable = null;
88 </script>
89 {/literal}