Merge pull request #23686 from demeritcowboy/primary-ts
[civicrm-core.git] / templates / CRM / Contact / Page / DedupeRules.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
1188c7a8 3 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 4 | |
1188c7a8
TO
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
6a488035
TO
8 +--------------------------------------------------------------------+
9*}
10{if $action eq 1 or $action eq 2}
11 {include file="CRM/Contact/Form/DedupeRules.tpl"}
12{elseif $action eq 4}
13{include file="CRM/Contact/Form/DedupeFind.tpl"}
14{else}
f6eedce7 15 <div class="help">
6a488035
TO
16 {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"}
17 </div>
18 {if $hasperm_administer_dedupe_rules}
19 <div class="action-link">
20 <a href="{crmURL p='civicrm/dedupe/exception' q='reset=1'}" class="button"><span>{ts}View the Dedupe Exceptions{/ts}</span></a>
21 </div>
22 {/if}
23 {if $brows}
24 {include file="CRM/common/jsortable.tpl"}
25 {foreach from=$brows key=contactType item=rows}
8a7a4586 26 <div id="browseValues_{$contactType}" class="crm-clearfix">
6a488035
TO
27 <div>
28 {strip}
fd19c5ae 29 <table id="options_{$contactType}" class="display mergecontact">
6a488035
TO
30 <thead>
31 <tr>
8a7a4586 32 <th>{ts 1=$contactTypes.$contactType}%1 Rules{/ts}</th>
6a488035
TO
33 <th>{ts}Usage{/ts}</th>
34 <th></th>
35 </tr>
36 </thead>
37 {foreach from=$rows item=row}
38 <tr class="{cycle values="odd-row,even-row"}">
39 <td>{$row.title}</td>
40 <td>{$row.used_display}</td>
71cc99a3 41 <td>{$row.action|smarty:nodefaults|replace:'xx':$row.id}</td>
6a488035
TO
42 </tr>
43 {/foreach}
44 </table>
45 {/strip}
46 </div>
47 <div style="float:right">
8a7a4586 48 {crmButton q="action=add&contact_type=$contactType&reset=1" icon="plus-circle"}{ts 1=$contactTypes.$contactType}Add %1 Rule{/ts}{/crmButton}
6a488035
TO
49 </div>
50 </div>
51 {/foreach}
52 {/if}
53
54{/if}