2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
27 <h3>{ts 1=$contact_type}Matching Rule for %1 Contacts{/ts}</h3>
28 <div class="crm-block crm-form-block crm-dedupe-rules-form-block">
30 {ts}Configure up to five fields to evaluate when searching for 'suspected' duplicate contact records.{/ts} {help id="id-rules"}
32 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
33 <table class="form-layout">
34 <tr class="crm-dedupe-rules-form-block-title">
35 <td class="label">{$form.title.label}</td>
38 <div class="description">
39 {ts}Enter descriptive name for this matching rule.{/ts}
43 <tr class="crm-dedupe-rules-form-block-used">
44 <td class="label">{$form.used.label}</td>
45 <td>{$form.used.html} {help id="id-rule-used"}</td>
47 <tr class="crm-dedupe-rules-form-block-is_reserved">
48 <td class="label">{$form.is_reserved.label}</td>
49 <td>{$form.is_reserved.html}
52 <span class="description">{ts}WARNING: Once a rule is marked as reserved it can not be deleted and the fields and weights can not be modified.{/ts}</span>
56 <tr class="crm-dedupe-rules-form-block-fields">
59 <table class="form-layout-compressed">
60 {* Hide fields and document match criteria for optimized reserved rules. *}
61 {if $ruleName EQ 'IndividualSupervised' OR $ruleName EQ 'IndividualUnsupervised' OR $ruleName EQ 'IndividualGeneral'}
64 <div class="status message">
65 {ts}This reserved rule is pre-configured with matching fields to optimize dedupe scanning performance. It matches on:{/ts}
67 {if $ruleName EQ 'IndividualUnsupervised'}
68 <li>{ts}Email only{/ts}</li>
69 {elseif $ruleName EQ 'IndividualSupervised'}
70 <li>{ts}Email{/ts}</li>
71 <li>{ts}First Name{/ts}</li>
72 <li>{ts}Last Name{/ts}</li>
73 {elseif $ruleName EQ 'IndividualGeneral'}
74 <li>{ts}First Name{/ts}</li>
75 <li>{ts}Last Name{/ts}</li>
76 <li>{ts}Middle Name (if present){/ts}</li>
77 <li>{ts}Suffix (if present){/ts}</li>
78 <li>{ts}Street Address (if present){/ts}</li>
79 <li>{ts}Birth Date (if present){/ts}</li>
89 <div class="status message">
90 {ts}Note: You cannot edit fields for a reserved rule.{/ts}
95 <tr class="columnheader"><td>{ts}Field{/ts}</td><td>{ts}Length{/ts}</td><td>{ts}Weight{/ts}</td></tr>
96 {section name=count loop=5}
97 {capture assign=where}where_{$smarty.section.count.index}{/capture}
98 {capture assign=length}length_{$smarty.section.count.index}{/capture}
99 {capture assign=weight}weight_{$smarty.section.count.index}{/capture}
100 <tr class="{cycle values="odd-row,even-row"}">
101 <td>{$form.$where.html}</td>
102 <td>{$form.$length.html}</td>
103 <td>{$form.$weight.html}</td>
106 <tr class="columnheader"><td colspan="2">{$form.threshold.label}</td>
107 <td>{$form.threshold.html}</td>
114 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>