Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
39de6fd5 | 3 | | CiviCRM version 4.6 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
819d0d41 | 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
6a488035 TO |
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 | ||
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"> | |
29 | <div id="help"> | |
30 | {ts}Configure up to five fields to evaluate when searching for 'suspected' duplicate contact records.{/ts} {help id="id-rules"} | |
31 | </div> | |
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> | |
36 | <td> | |
37 | {$form.title.html} | |
38 | <div class="description"> | |
39 | {ts}Enter descriptive name for this matching rule.{/ts} | |
40 | </div> | |
41 | </td> | |
42 | </tr> | |
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> | |
46 | </tr> | |
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} | |
50 | {if !$isReserved} | |
51 | <br /> | |
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> | |
53 | {/if} | |
54 | </td> | |
55 | </tr> | |
56 | <tr class="crm-dedupe-rules-form-block-fields"> | |
57 | <td></td> | |
58 | <td> | |
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'} | |
62 | <tr> | |
63 | <td> | |
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} | |
66 | <ul> | |
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> | |
80 | {/if} | |
81 | </ul> | |
82 | </div> | |
83 | </td> | |
84 | </tr> | |
85 | {else} | |
86 | {if $isReserved} | |
87 | <tr> | |
88 | <td> | |
89 | <div class="status message"> | |
90 | {ts}Note: You cannot edit fields for a reserved rule.{/ts} | |
91 | </div> | |
92 | </td> | |
93 | </tr> | |
94 | {/if} | |
a59218be | 95 | <tr class="columnheader"><td>{ts}Field{/ts}</td><td>{ts}Length{/ts}</td><td>{ts}Weight{/ts}</td></tr> |
6a488035 TO |
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> | |
104 | </tr> | |
105 | {/section} | |
106 | <tr class="columnheader"><td colspan="2">{$form.threshold.label}</td> | |
107 | <td>{$form.threshold.html}</td> | |
108 | </tr> | |
109 | {/if} | |
110 | </table> | |
111 | </td> | |
112 | </tr> | |
113 | </table> | |
114 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
115 | </div> |