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