Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
232624b1 | 3 | | CiviCRM version 4.4 | |
6a488035 TO |
4 | +--------------------------------------------------------------------+ |
5 | | Copyright CiviCRM LLC (c) 2004-2013 | | |
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 1 or $action eq 2} | |
27 | {include file="CRM/Contact/Form/DedupeRules.tpl"} | |
28 | {elseif $action eq 4} | |
29 | {include file="CRM/Contact/Form/DedupeFind.tpl"} | |
30 | {else} | |
31 | <div id="help"> | |
32 | {ts}Manage the rules used to identify potentially duplicate contact records. Scan for duplicates using a selected rule and merge duplicate contact data as needed.{/ts} {help id="id-dedupe-intro"} | |
33 | </div> | |
34 | {if $hasperm_administer_dedupe_rules} | |
35 | <div class="action-link"> | |
36 | <a href="{crmURL p='civicrm/dedupe/exception' q='reset=1'}" class="button"><span>{ts}View the Dedupe Exceptions{/ts}</span></a> | |
37 | </div> | |
38 | {/if} | |
39 | {if $brows} | |
40 | {include file="CRM/common/jsortable.tpl"} | |
41 | {foreach from=$brows key=contactType item=rows} | |
42 | <div id="browseValues_{$contactType}"> | |
43 | <div> | |
44 | {strip} | |
45 | <table id="options_{$contactType}" class="display"> | |
46 | <thead> | |
47 | <tr> | |
48 | <th>{ts 1=$contactType}%1 Rules{/ts}</th> | |
49 | <th>{ts}Usage{/ts}</th> | |
50 | <th></th> | |
51 | </tr> | |
52 | </thead> | |
53 | {foreach from=$rows item=row} | |
54 | <tr class="{cycle values="odd-row,even-row"}"> | |
55 | <td>{$row.title}</td> | |
56 | <td>{$row.used_display}</td> | |
57 | <td>{$row.action|replace:'xx':$row.id}</td> | |
58 | </tr> | |
59 | {/foreach} | |
60 | </table> | |
61 | {/strip} | |
62 | </div> | |
63 | <div style="float:right"> | |
64 | <a href="{crmURL q="action=add&contact_type=$contactType&reset=1"}" class="button"><span><div class="icon add-icon"></div>{ts 1=$contactType}Add Rule for %1s{/ts}</span></a> | |
65 | </div> | |
66 | </div> | |
67 | {/foreach} | |
68 | {/if} | |
69 | ||
70 | {/if} |