Commit | Line | Data |
---|---|---|
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 | {* template for search builder *} | |
11 | <div id="map-field"> | |
12 | {strip} | |
13 | {section start=1 name=blocks loop=$blockCount} | |
14 | {assign var="x" value=$smarty.section.blocks.index} | |
15 | <div class="crm-search-block"> | |
16 | <h3>{if $x eq 1}{ts}Include contacts where{/ts}{else}{ts}Also include contacts where{/ts}{/if}</h3> | |
17 | <table> | |
18 | {section name=cols loop=$columnCount[$x]} | |
19 | {assign var="i" value=$smarty.section.cols.index} | |
20 | <tr> | |
21 | <td class="form-item even-row"> | |
22 | {$form.mapper[$x][$i].html} | |
23 | {$form.operator[$x][$i].html|crmAddClass:'required'} | |
24 | <span class="crm-search-value" id="crm_search_value_{$x}_{$i}"> | |
25 | {$form.value[$x][$i].html|crmAddClass:'required'} | |
26 | </span> | |
27 | {if $i gt 0 or $x gt 1} | |
13a3d214 | 28 | <a href="#" class="crm-reset-builder-row crm-hover-button" title="{ts}Remove this row{/ts}"><i class="crm-i fa-times" aria-hidden="true"></i></a> |
6a488035 TO |
29 | {/if} |
30 | </td> | |
31 | </tr> | |
32 | {/section} | |
33 | ||
34 | <tr class="crm-search-builder-add-row"> | |
35 | <td class="form-item even-row underline-effect"> | |
36 | {$form.addMore[$x].html} | |
37 | </td> | |
38 | </tr> | |
39 | </table> | |
40 | </div> | |
41 | {/section} | |
42 | <h3 class="crm-search-builder-add-block underline-effect">{$form.addBlock.html}</h3> | |
43 | {/strip} | |
44 | </div> |