Merge pull request #15316 from mepps/order-campaign-dashboard
[civicrm-core.git] / templates / CRM / Campaign / Form / Search.tpl
CommitLineData
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{* Search form and results for voters *}
11{include file='CRM/Campaign/Form/Search/Common.tpl' context='search'}
12
13{if $rowsEmpty || $rows}
ad6a7ecc 14<div class="crm-content-block crm-search-form-block">
6a488035 15{if $rowsEmpty}
ad6a7ecc
MR
16<div class="crm-content-block">
17 <div class="crm-results-block crm-results-block-empty">
6a488035 18 {include file="CRM/Campaign/Form/Search/EmptyResults.tpl"}
ad6a7ecc
MR
19 </div>
20</div>
6a488035
TO
21{/if}
22
23{if $rows}
ad6a7ecc
MR
24<div class="crm-content-block">
25 <div class="crm-results-block">
6a488035
TO
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>
ad6a7ecc 32 <div class="crm-search-tasks">
6a488035
TO
33 {* This section handles form elements for action task select and submit *}
34 {include file="CRM/common/searchResultTasks.tpl" context="Campaign"}
ad6a7ecc
MR
35 </div>
36 <div class="crm-search-results">
6a488035 37 {* This section displays the rows along and includes the paging controls *}
6a488035 38 {include file="CRM/Campaign/Form/Selector.tpl" context="Search"}
ad6a7ecc 39 </div>
6a488035
TO
40 </fieldset>
41 {* END Actions/Results section *}
ad6a7ecc
MR
42 </div>
43</div>
6a488035
TO
44{/if}
45</div>
46{/if}