Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
232624b1 | 3 | | CiviCRM version 4.4 | |
6a488035 TO |
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 | <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 | <div class="listing-box"> | |
38 | {foreach from=$form.event_type_id item="event_val"} | |
39 | <div class="{cycle values="odd-row,even-row"}"> | |
40 | {$event_val.html} | |
41 | </div> | |
42 | {/foreach} | |
43 | </div> | |
44 | </td> | |
45 | <td class="right" rowspan="2"> {include file="CRM/common/formButtons.tpl"}</td> | |
46 | </tr> | |
47 | ||
48 | <tr> | |
49 | <td colspan="2"> | |
50 | <table class="form-layout-compressed" id="id_fromToDates"> | |
51 | <tr class="crm-event-searchevent-form-block-start_date"> | |
52 | <td class="label">{$form.start_date.label}</td> | |
53 | <td>{include file="CRM/common/jcalendar.tpl" elementName=start_date}</td> | |
54 | </tr> | |
55 | <tr class="crm-event-searchevent-form-block-end_date" > | |
56 | <td class="label">{$form.end_date.label}</td> | |
57 | <td>{include file="CRM/common/jcalendar.tpl" elementName=end_date}</td> | |
58 | </tr> | |
59 | </table> | |
60 | </td></tr> | |
61 | ||
62 | {* campaign in event search *} | |
63 | {include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignContext="componentSearch" | |
64 | campaignTrClass='crm-event-searchevent-form-block-campaign_id' campaignTdClass=''} | |
65 | ||
66 | </table> | |
67 | </div> | |
68 | ||
69 | {include file="CRM/common/showHide.tpl"} | |
70 | ||
71 | {literal} | |
72 | <script type="text/javascript"> | |
73 | if ( document.getElementsByName('eventsByDates')[1].checked ) { | |
a294f3e5 | 74 | cj('#id_fromToDates').show(); |
6a488035 TO |
75 | } |
76 | </script> | |
77 | {/literal} |