Merge pull request #2564 from jaapjansma/CRM-14276
[civicrm-core.git] / templates / CRM / Contact / Form / Search / Builder.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
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 {* Search Builder *}
27
28 <div class="crm-form-block crm-search-form-block">
29 <div class="crm-accordion-wrapper crm-search_builder-accordion {if $rows and !$showSearchForm}collapsed{/if}">
30 <div class="crm-accordion-header crm-master-accordion-header">
31 {ts}Search Criteria{/ts} {help id='builder-intro'}
32 </div>
33 <div class="crm-accordion-body">
34 <div id="searchForm">
35 {* Table for adding search criteria. *}
36 {include file="CRM/Contact/Form/Search/table.tpl"}
37 <div class="clear"></div>
38 <div id="crm-submit-buttons">
39 {$form.buttons.html}
40 </div>
41 </div>
42 </div><!-- /.crm-accordion-body -->
43 </div><!-- /.crm-accordion-wrapper -->
44 </div><!-- /.crm-form-block -->
45 {if $rowsEmpty || $rows}
46 <div class="crm-content-block">
47 {if $rowsEmpty}
48 <div class="crm-results-block crm-results-block-empty">
49 {include file="CRM/Contact/Form/Search/EmptyResults.tpl"}
50 </div>
51 {/if}
52
53 {if $rows}
54 <div class="crm-results-block">
55 {* This section handles form elements for action task select and submit *}
56 <div class="crm-search-tasks">
57 {include file="CRM/Contact/Form/Search/ResultTasks.tpl"}
58 </div>
59
60 {* This section displays the rows along and includes the paging controls *}
61 <div class="crm-search-results">
62 {include file="CRM/Contact/Form/Selector.tpl"}
63 </div>
64
65 </div>
66 {* END Actions/Results section *}
67
68 {/if}
69 </div>
70 {/if}
71 {$initHideBoxes}
72 {include file="CRM/Form/validate.tpl"}