CRM-13966 - Migrate event type to select2
[civicrm-core.git] / templates / CRM / Event / Form / Search / Common.tpl
CommitLineData
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<tr>
6aac2db8
CW
27 <td class="crm-event-form-block-event_name"> {$form.event_name.label} <br />{$form.event_name.html|crmAddClass:huge} </td>
28 <td class="crm-event-form-block-event_type_id"> {$form.event_type_id.label}<br />{$form.event_type_id.html} </td>
6a488035
TO
29</tr>
30<tr>
31 <td colspan="2"><label>{ts}Event Dates{/ts}</label></td>
32</tr>
33<tr>
34{include file="CRM/Core/DateRange.tpl" fieldName="event" from='_start_date_low' to='_end_date_high'}
35</tr>
36<tr>
37 <td class="crm-event-form-block-participant_status"><label>{ts}Participant Status{/ts}</label>
38 <br />
39 <div class="listing-box" style="width: auto; height: 120px">
40 {foreach from=$form.participant_status_id item="participant_status_val"}
41 <div class="{cycle values="odd-row,even-row"}">
42 {$participant_status_val.html}
43 </div>
44 {/foreach}
45 </div>
46 </td>
47 <td class="crm-event-form-block-participant_role_id"><label>{ts}Participant Role{/ts}</label>
48 <br />
49 <div class="listing-box" style="width: auto; height: 120px">
50 {foreach from=$form.participant_role_id item="participant_role_id_val"}
51 <div class="{cycle values="odd-row,even-row"}">
52 {$participant_role_id_val.html}
53 </div>
54 {/foreach}
55 </div><br />
56 </td>
57</tr>
58<tr>
59 <td class="crm-event-form-block-participant_test">
60 {$form.participant_test.label} {help id="is-test" file="CRM/Contact/Form/Search/Advanced"}
61 &nbsp; {$form.participant_test.html}
6a488035
TO
62 </td>
63 <td class="crm-event-form-block-participant_pay_later">
64 {$form.participant_pay_later.label} {$form.participant_pay_later.html}
6a488035
TO
65 </td>
66</tr>
67<tr>
68 <td class="crm-event-form-block-participant_fee_level">
69 {$form.participant_fee_level.label}<br />{$form.participant_fee_level.html}
70 </td>
71 <td class="crm-event-form-block-participant_fee_amount">
72 <label>{ts}Fee Amount{/ts}</label><br />
73 {$form.participant_fee_amount_low.label} &nbsp; {$form.participant_fee_amount_low.html} &nbsp;&nbsp;
74 {$form.participant_fee_amount_high.label} &nbsp; {$form.participant_fee_amount_high.html}
75 </td>
76</tr>
77
78{* campaign in contribution search *}
79{include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignContext="componentSearch"
80campaignTrClass='' campaignTdClass='crm-event-form-block-participant_campaign_id'}
81
82{if $participantGroupTree }
83<tr>
84 <td colspan="4">
85 {include file="CRM/Custom/Form/Search.tpl" groupTree=$participantGroupTree showHideLinks=false}
86 </td>
87</tr>
88{/if}
89
90{literal}
91<script type="text/javascript">
92var eventUrl = "{/literal}{$dataURLEvent}{literal}";
6a488035
TO
93var feeUrl = "{/literal}{$dataURLEventFee}{literal}";
94
95cj('#event_name').autocomplete( eventUrl, { width : 280, selectFirst : false, matchContains: true
96}).result( function(event, data, formatted) { cj( "input#event_id" ).val( data[1] );
97 }).bind( 'click', function( ) { cj( "input#event_id" ).val(''); });
98
6a488035
TO
99cj('#participant_fee_level').autocomplete( feeUrl, { width : 180, selectFirst : false, matchContains: true
100}).result(function(event, data, formatted) { cj( "input#participant_fee_id" ).val( data[1] );
101 }).bind( 'click', function( ) { cj( "input#participant_fee_id" ).val(''); });
102</script>
103{/literal}