Merge pull request #353 from eileenmcnaughton/trunk-kill-eval
[civicrm-core.git] / templates / CRM / Activity / Form / Search.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.3 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
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 form and results for Activities *}
27 <div class="crm-form-block crm-search-form-block">
28 <div class="crm-accordion-wrapper crm-advanced_search_form-accordion {if $rows}collapsed{/if}">
29 <div class="crm-accordion-header crm-master-accordion-header">
30 {ts}Edit Search Criteria{/ts}
31 </div><!-- /.crm-accordion-header -->
32 <div class="crm-accordion-body">
33 <div id="searchForm" class="form-item">
34 {strip}
35 <table class="form-layout">
36 <tr>
37 <td class="font-size12pt" colspan="3">
38 {$form.sort_name.label}&nbsp;&nbsp;{$form.sort_name.html|crmAddClass:'twenty'}&nbsp;&nbsp;&nbsp;{$form.buttons.html}
39 </td>
40 </tr>
41
42 {include file="CRM/Activity/Form/Search/Common.tpl"}
43
44 <tr>
45 <td colspan="3">{$form.buttons.html}</td>
46 </tr>
47 </table>
48 {/strip}
49 </div>
50 </div>
51 </div>
52 </div>
53
54 {if $rowsEmpty || $rows }
55 <div class="crm-content-block">
56 {if $rowsEmpty}
57 <div class="crm-results-block crm-results-block-empty">
58 {include file="CRM/Activity/Form/Search/EmptyResults.tpl"}
59 </div>
60 {/if}
61
62 {if $rows}
63 <div class="crm-results-block">
64 {* Search request has returned 1 or more matching rows. *}
65
66 {* This section handles form elements for action task select and submit *}
67 <div class="crm-search-tasks">
68 {include file="CRM/common/searchResultTasks.tpl"}
69 </div>
70 {* This section displays the rows along and includes the paging controls *}
71 <div class="crm-search-results">
72 {include file="CRM/Activity/Form/Selector.tpl" context="Search"}
73 </div>
74 {* END Actions/Results section *}
75 </div>
76 {/if}
77 </div>
78 {/if}
79 {literal}
80 <script type="text/javascript">
81 cj(function() {
82 cj().crmAccordions();
83 });
84 </script>
85 {/literal}