2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
27 <td class="crm-event-form-block-event_id">
28 {$form.event_id.label} <br />{$form.event_id.html|crmAddClass:huge} <br/>
29 {$form.event_include_repeating_events.label} {$form.event_include_repeating_events.html}
31 <td class="crm-event-form-block-event_type_id"> {$form.event_type_id.label}<br />{$form.event_type_id.html} </td>
34 <td colspan="2"><label>{ts}Event Dates{/ts}</label></td>
37 {include file="CRM/Core/DateRange.tpl" fieldName="event" from='_start_date_low' to='_end_date_high'}
40 <td class="crm-event-form-block-participant_status"><label>{$form.participant_status_id.label}</label>
42 {$form.participant_status_id.html}
44 <td class="crm-event-form-block-participant_role_id"><label>{$form.participant_role_id.label}</label>
46 {$form.participant_role_id.html}
50 <td class="crm-event-form-block-participant_test">
51 {$form.participant_test.label} {help id="is-test" file="CRM/Contact/Form/Search/Advanced"}
52 {$form.participant_test.html}
54 <td class="crm-event-form-block-participant_pay_later">
55 {$form.participant_is_pay_later.label} {$form.participant_is_pay_later.html}
59 <td class="crm-event-form-block-participant_fee_id">
60 {$form.participant_fee_id.label}<br />{$form.participant_fee_id.html}
62 <td class="crm-event-form-block-participant_fee_amount">
63 <label>{ts}Fee Amount{/ts}</label><br />
64 {$form.participant_fee_amount_low.label} {$form.participant_fee_amount_low.html}
65 {$form.participant_fee_amount_high.label} {$form.participant_fee_amount_high.html}
69 {* campaign in contribution search *}
70 {include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignContext="componentSearch"
71 campaignTrClass='' campaignTdClass='crm-event-form-block-participant_campaign_id'}
73 {if $participantGroupTree }
76 {include file="CRM/Custom/Form/Search.tpl" groupTree=$participantGroupTree showHideLinks=false}
82 <script type="text/javascript">
84 // FIXME: This could be much simpler as an entityRef field but the priceFieldValue api doesn't currently support the filters we need
85 $('#participant_fee_id').crmSelect2({
86 placeholder: {/literal}'{ts escape="js"}- any -{/ts}'{literal},
87 minimumInputLength: 1,
90 url: "{/literal}{$dataURLEventFee}{literal}",
91 data: function(term) {
94 results: function(response) {
95 return {results: response};
98 initSelection: function(el, callback) {
99 CRM.api3('price_field_value', 'getsingle', {id: $(el).val()}).done(function(data) {
100 callback({id: data.id, text: data.label});