Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-04-04-00-48-43
[civicrm-core.git] / templates / CRM / Event / Form / Search.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 form and results for Event Participants *}
27 {assign var="showBlock" value="'searchForm'"}
28 {assign var="hideBlock" value="'searchForm_show'"}
29 <div class="crm-block crm-form-block crm-event-search-form-block">
30 <div class="crm-accordion-wrapper crm-advanced_search_form-accordion {if !empty($ssID) or $rows}collapsed{/if}">
31 <div class="crm-accordion-header crm-master-accordion-header">
32 {ts}Edit Search Criteria{/ts}
33 </div>
34 <div class="crm-accordion-body">
35 <div id="searchForm">
36 {strip}
37 <table class="form-layout">
38 <tr class="crm-event-search-form-block-sort_name">
39 <td class="font-size12pt" colspan="2">
40 {$form.sort_name.label}&nbsp;&nbsp;{$form.sort_name.html|crmAddClass:'twenty'}&nbsp;&nbsp;&nbsp;{$form.buttons.html}
41 </td>
42 </tr>
43
44 {include file="CRM/Event/Form/Search/Common.tpl"}
45
46 <tr>
47 <td colspan="2">{include file="CRM/common/formButtons.tpl"}</td>
48 </tr>
49 </table>
50 {/strip}
51 </div>
52 </div>
53 </div>
54 </div>
55 {if $rowsEmpty|| $rows}
56 <div class="crm-block crm-content-block">
57 {if $rowsEmpty}
58 <div class="crm-results-block crm-results-block-empty">
59 {include file="CRM/Event/Form/Search/EmptyResults.tpl"}
60 </div>
61 {/if}
62
63 {if $rows}
64 <div class="crm-results-block">
65 {* Search request has returned 1 or more matching rows. *}
66 {* This section handles form elements for action task select and submit *}
67 <div class="crm-search-tasks crm-event-search-tasks">
68 {include file="CRM/common/searchResultTasks.tpl" context='Event'}
69 </div>
70 {* This section displays the rows along and includes the paging controls *}
71 <div id='participantSearch' class="crm-event-search-results">
72 {include file="CRM/Event/Form/Selector.tpl" context="Search"}
73 </div>
74 {* END Actions/Results section *}
75 </div>
76 {/if}
77
78 </div>
79 {/if}