Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
819d0d41 | 3 | | CiviCRM version 4.5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
819d0d41 | 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
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 | <tr> | |
9c7c6a00 | 27 | <td class="crm-event-form-block-event_id"> {$form.event_id.label} <br />{$form.event_id.html|crmAddClass:huge} </td> |
6aac2db8 | 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 | {$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> | |
93793e86 CW |
68 | <td class="crm-event-form-block-participant_fee_id"> |
69 | {$form.participant_fee_id.label}<br />{$form.participant_fee_id.html} | |
6a488035 TO |
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} {$form.participant_fee_amount_low.html} | |
74 | {$form.participant_fee_amount_high.label} {$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" | |
80 | campaignTrClass='' 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"> | |
3cc60a06 | 92 | CRM.$(function($) { |
93793e86 | 93 | // FIXME: This could be much simpler as an entityRef field but the priceFieldValue api doesn't currently support the filters we need |
a243158e | 94 | $('#participant_fee_id').crmSelect2({ |
93793e86 CW |
95 | placeholder: {/literal}'{ts escape="js"}- any -{/ts}'{literal}, |
96 | minimumInputLength: 1, | |
97 | allowClear: true, | |
98 | ajax: { | |
99 | url: "{/literal}{$dataURLEventFee}{literal}", | |
100 | data: function(term) { | |
101 | return {term: term}; | |
102 | }, | |
103 | results: function(response) { | |
104 | return {results: response}; | |
105 | } | |
106 | }, | |
107 | initSelection: function(el, callback) { | |
108 | CRM.api3('price_field_value', 'getsingle', {id: $(el).val()}).done(function(data) { | |
109 | callback({id: data.id, text: data.label}); | |
110 | }); | |
111 | } | |
112 | }); | |
113 | }); | |
6a488035 TO |
114 | </script> |
115 | {/literal} |