more UI changes to search screen
[civicrm-core.git] / templates / CRM / Activity / Form / Search.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.4 |
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>
32 <!-- /.crm-accordion-header -->
33 <div class="crm-accordion-body">
34 <div id="searchForm" class="form-item">
35 {strip}
36 <table class="form-layout">
37 <tr>
38 <td class="font-size12pt" colspan="3">
39 {$form.sort_name.label}&nbsp;&nbsp;{$form.sort_name.html|crmAddClass:'twenty'}
40 &nbsp;&nbsp;&nbsp;{$form.buttons.html}
41 <div>
42 <div class="description font-italic">{ts}Complete OR partial name{/ts}
43 <span class="contact-name-option option-1">{ts} of the Source Contact{/ts}</span>
44 <span class="contact-name-option option-2">{ts} of the Assignee Contact{/ts}</span>
45 <span class="contact-name-option option-3">{ts} of the Target Contact{/ts}</span>
46 </div>
47 </div>
48 </td>
49 </tr>
50
51 {include file="CRM/Activity/Form/Search/Common.tpl"}
52
53 <tr>
54 <td colspan="3">{$form.buttons.html}</td>
55 </tr>
56 </table>
57 {/strip}
58 </div>
59 </div>
60 </div>
61 </div>
62
63 {if $rowsEmpty || $rows }
64 <div class="crm-content-block">
65 {if $rowsEmpty}
66 <div class="crm-results-block crm-results-block-empty">
67 {include file="CRM/Activity/Form/Search/EmptyResults.tpl"}
68 </div>
69 {/if}
70
71 {if $rows}
72 <div class="crm-results-block">
73 {* Search request has returned 1 or more matching rows. *}
74
75 {* This section handles form elements for action task select and submit *}
76 <div class="crm-search-tasks">
77 {include file="CRM/common/searchResultTasks.tpl"}
78 </div>
79 {* This section displays the rows along and includes the paging controls *}
80 <div class="crm-search-results">
81 {include file="CRM/Activity/Form/Selector.tpl" context="Search"}
82 </div>
83 {* END Actions/Results section *}
84 </div>
85 {/if}
86 </div>
87 {/if}
88 {literal}
89 <script type="text/javascript">
90 cj(function() {
91 cj().crmAccordions();
92 });
93 </script>
94 {/literal}