Merge remote-tracking branch 'upstream/4.6' into 4.6-master-2015-08-31-12-20-39
[civicrm-core.git] / templates / CRM / Event / Form / SearchEvent.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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 <div class="crm-block crm-form-block crm-event-searchevent-form-block">
27 <h3>{ts}Find Events{/ts}</h3>
28 <table class="form-layout">
29 <tr class="crm-event-searchevent-form-block-title">
30 <td>{$form.title.html|crmAddClass:twenty}
31 <div class="description font-italic">
32 {ts}Complete OR partial Event name.{/ts}
33 </div>
34 <div style="height: auto; vertical-align: bottom">{$form.eventsByDates.html}</div>
35 </td>
36 <td rowspan="2"><label>{ts}Event Type{/ts}</label>
37 {$form.event_type_id.html}
38 </td>
39 <td class="right" rowspan="2">&nbsp;{include file="CRM/common/formButtons.tpl"}</td>
40 </tr>
41
42 <tr>
43 <td colspan="2">
44 <table class="form-layout-compressed" id="id_fromToDates">
45 <tr class="crm-event-searchevent-form-block-start_date">
46 <td class="label">{$form.start_date.label}</td>
47 <td>{include file="CRM/common/jcalendar.tpl" elementName=start_date}</td>
48 </tr>
49 <tr class="crm-event-searchevent-form-block-end_date" >
50 <td class="label">{$form.end_date.label}</td>
51 <td>{include file="CRM/common/jcalendar.tpl" elementName=end_date}</td>
52 </tr>
53 </table>
54 </td></tr>
55
56 {* campaign in event search *}
57 {include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignContext="componentSearch"
58 campaignTrClass='crm-event-searchevent-form-block-campaign_id' campaignTdClass=''}
59
60 </table>
61 </div>
62
63 {include file="CRM/common/showHide.tpl"}
64
65 {literal}
66 <script type="text/javascript">
67 if ( document.getElementsByName('eventsByDates')[1].checked ) {
68 cj('#id_fromToDates').show();
69 }
70 </script>
71 {/literal}