Merge pull request #23102 from seamuslee001/dompdf_update
[civicrm-core.git] / templates / CRM / Contact / Form / DedupeRules.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 |
8 +--------------------------------------------------------------------+
9 *}
10
11 <h3>{ts 1=$contact_type}Matching Rule for %1 Contacts{/ts}</h3>
12 <div class="crm-block crm-form-block crm-dedupe-rules-form-block">
13 <div class="help">
14 {ts}Configure up to five fields to evaluate when searching for 'suspected' duplicate contact records.{/ts} {help id="id-rules"}
15 </div>
16 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
17 <table class="form-layout">
18 <tr class="crm-dedupe-rules-form-block-title">
19 <td class="label">{$form.title.label}</td>
20 <td>
21 {$form.title.html}
22 <div class="description">
23 {ts}Enter descriptive name for this matching rule.{/ts}
24 </div>
25 </td>
26 </tr>
27 <tr class="crm-dedupe-rules-form-block-used">
28 <td class="label">{$form.used.label}</td>
29 <td>{$form.used.html} {help id="id-rule-used"}</td>
30 </tr>
31 <tr class="crm-dedupe-rules-form-block-is_reserved">
32 <td class="label">{$form.is_reserved.label}</td>
33 <td>{$form.is_reserved.html}
34 {if empty($isReserved)}
35 <br />
36 <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>
37 {/if}
38 </td>
39 </tr>
40 <tr class="crm-dedupe-rules-form-block-fields">
41 <td></td>
42 <td>
43 <table class="form-layout-compressed">
44 {* Hide fields and document match criteria for optimized reserved rules. *}
45 {if !empty($ruleName) and ($ruleName EQ 'IndividualSupervised' OR $ruleName EQ 'IndividualUnsupervised' OR $ruleName EQ 'IndividualGeneral')}
46 <tr>
47 <td>
48 <div class="status message">
49 {ts}This reserved rule is pre-configured with matching fields to optimize dedupe scanning performance. It matches on:{/ts}
50 <ul>
51 {if $ruleName EQ 'IndividualUnsupervised'}
52 <li>{ts}Email only{/ts}</li>
53 {elseif $ruleName EQ 'IndividualSupervised'}
54 <li>{ts}Email{/ts}</li>
55 <li>{ts}First Name{/ts}</li>
56 <li>{ts}Last Name{/ts}</li>
57 {elseif $ruleName EQ 'IndividualGeneral'}
58 <li>{ts}First Name{/ts}</li>
59 <li>{ts}Last Name{/ts}</li>
60 <li>{ts}Middle Name (if present){/ts}</li>
61 <li>{ts}Suffix (if present){/ts}</li>
62 <li>{ts}Street Address (if present){/ts}</li>
63 <li>{ts}Birth Date (if present){/ts}</li>
64 {/if}
65 </ul>
66 </div>
67 </td>
68 </tr>
69 {else}
70 {if !empty($isReserved)}
71 <tr>
72 <td>
73 <div class="status message">
74 {ts}Note: You cannot edit fields for a reserved rule.{/ts}
75 </div>
76 </td>
77 </tr>
78 {/if}
79 <tr class="columnheader"><td>{ts}Field{/ts}</td><td>{ts}Length{/ts}</td><td>{ts}Weight{/ts}</td></tr>
80 {section name=count loop=5}
81 {capture assign=where}where_{$smarty.section.count.index}{/capture}
82 {capture assign=length}length_{$smarty.section.count.index}{/capture}
83 {capture assign=weight}weight_{$smarty.section.count.index}{/capture}
84 <tr class="{cycle values="odd-row,even-row"}">
85 <td>{$form.$where.html}</td>
86 <td>{$form.$length.html}</td>
87 <td>{$form.$weight.html}</td>
88 </tr>
89 {/section}
90 <tr class="columnheader"><td colspan="2">{$form.threshold.label}</td>
91 <td>{$form.threshold.html}</td>
92 </tr>
93 {/if}
94 </table>
95 </td>
96 </tr>
97 </table>
98 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
99 </div>