Merge pull request #13232 from JO0st/core-574
[civicrm-core.git] / templates / CRM / Campaign / Form / Search.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 {* Search form and results for voters *}
11 {include file='CRM/Campaign/Form/Search/Common.tpl' context='search'}
12
13 {if $rowsEmpty || $rows}
14 <div class="crm-content-block crm-search-form-block">
15 {if $rowsEmpty}
16 <div class="crm-content-block">
17 <div class="crm-results-block crm-results-block-empty">
18 {include file="CRM/Campaign/Form/Search/EmptyResults.tpl"}
19 </div>
20 </div>
21 {/if}
22
23 {if $rows}
24 <div class="crm-content-block">
25 <div class="crm-results-block">
26 {* Search request has returned 1 or more matching rows. Display results and collapse the search criteria fieldset. *}
27 {assign var="showBlock" value="'searchForm_show'"}
28 {assign var="hideBlock" value="'searchForm'"}
29
30 {* Search request has returned 1 or more matching rows. *}
31 <fieldset>
32 <div class="crm-search-tasks">
33 {* This section handles form elements for action task select and submit *}
34 {include file="CRM/common/searchResultTasks.tpl" context="Campaign"}
35 </div>
36 <div class="crm-search-results">
37 {* This section displays the rows along and includes the paging controls *}
38 {include file="CRM/Campaign/Form/Selector.tpl" context="Search"}
39 </div>
40 </fieldset>
41 {* END Actions/Results section *}
42 </div>
43 </div>
44 {/if}
45 </div>
46 {/if}