Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
2a73d3b0 | 5 | | Copyright CiviCRM LLC (c) 2004-2017 | |
6a488035 TO |
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"> | |
51180095 | 30 | <td> |
92164dec | 31 | <label>{$form.title.label}</label> |
51180095 MR |
32 | {$form.title.html|crmAddClass:twenty} |
33 | <div class="description font-italic"> | |
34 | {ts}Complete OR partial Event name.{/ts} | |
35 | </div> | |
36 | <div style="height: auto; vertical-align: bottom">{$form.eventsByDates.html}</div> | |
6a488035 TO |
37 | </td> |
38 | <td rowspan="2"><label>{ts}Event Type{/ts}</label> | |
157e9eb6 | 39 | {$form.event_type_id.html} |
6a488035 | 40 | </td> |
31037a42 | 41 | <td class="right" rowspan="2"> {include file="CRM/common/formButtons.tpl"}</td> |
6a488035 | 42 | </tr> |
31037a42 | 43 | |
6a488035 TO |
44 | <tr> |
45 | <td colspan="2"> | |
46 | <table class="form-layout-compressed" id="id_fromToDates"> | |
47 | <tr class="crm-event-searchevent-form-block-start_date"> | |
48 | <td class="label">{$form.start_date.label}</td> | |
49 | <td>{include file="CRM/common/jcalendar.tpl" elementName=start_date}</td> | |
50 | </tr> | |
51 | <tr class="crm-event-searchevent-form-block-end_date" > | |
52 | <td class="label">{$form.end_date.label}</td> | |
31037a42 | 53 | <td>{include file="CRM/common/jcalendar.tpl" elementName=end_date}</td> |
6a488035 | 54 | </tr> |
31037a42 EM |
55 | </table> |
56 | </td></tr> | |
6a488035 TO |
57 | |
58 | {* campaign in event search *} | |
31037a42 | 59 | {include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignContext="componentSearch" |
6a488035 TO |
60 | campaignTrClass='crm-event-searchevent-form-block-campaign_id' campaignTdClass=''} |
61 | ||
62 | </table> | |
63 | </div> | |
64 | ||
65 | {include file="CRM/common/showHide.tpl"} | |
66 | ||
31037a42 | 67 | {literal} |
6a488035 TO |
68 | <script type="text/javascript"> |
69 | if ( document.getElementsByName('eventsByDates')[1].checked ) { | |
a294f3e5 | 70 | cj('#id_fromToDates').show(); |
6a488035 TO |
71 | } |
72 | </script> | |
31037a42 | 73 | {/literal} |