{* +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | | CiviCRM is free software; you can copy, modify, and distribute it | | under the terms of the GNU Affero General Public License | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | | | CiviCRM is distributed in the hope that it will be useful, but | | WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | See the GNU Affero General Public License for more details. | | | | You should have received a copy of the GNU Affero General Public | | License and the CiviCRM Licensing Exception along | | with this program; if not, contact CiviCRM LLC | | at info[AT]civicrm[DOT]org. If you have questions about the | | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {* This template is used for adding/editing/deleting offline Event Registrations *} {* Ajax callback for showing event fee snippet *} {if $showFeeBlock} {if $priceSet}
{literal} {/literal} {/if} {include file="CRM/Event/Form/EventFees.tpl"} {* Ajax callback for custom data snippet *} {elseif $cdType} {include file="CRM/Custom/Form/CustomData.tpl"} {* Main event form template *} {else} {if $participantMode == 'test' } {assign var=registerMode value="TEST"} {elseif $participantMode == 'live'} {assign var=registerMode value="LIVE"} {/if}
{if $participantMode}
{ts 1=$displayName 2=$registerMode}Use this form to submit an event registration on behalf of %1. A %2 transaction will be submitted using the selected payment processor.{/ts}
{/if} {if $action eq 1 AND $paid}
{ts}If you are accepting offline payment from this participant, check Record Payment. You will be able to fill in the payment information, and optionally send a receipt.{/ts}
{/if} {if $action eq 8} {* If action is Delete *}
  {ts}WARNING: Deleting this registration will result in the loss of related payment records (if any).{/ts} {ts}Do you want to continue?{/ts}
{if $additionalParticipant}
{ts 1=$additionalParticipant} There are %1 more Participant(s) registered by this participant.{/ts}
{/if}
{if $additionalParticipant} {$form.delete_participant.html} {/if} {else} {* If action is other than Delete *}
{include file="CRM/common/formButtons.tpl" location="top"}
{if $single and $context neq 'standalone'} {else} {/if} {if $action EQ 2} {if $additionalParticipants} {* Display others registered by this participant *} {/if} {if $registered_by_contact_id} {/if} {/if} {if $participantMode} {/if} {* CRM-7362 --add campaign *} {include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignTrClass="crm-participant-form-block-campaign_id"}
{$displayName} 
{$form.contact_id.label} {$form.contact_id.html}
{foreach from=$additionalParticipants key=apName item=apURL} {$apName}
{/foreach}
{$registered_by_display_name}
{$form.payment_processor_id.label} {$form.payment_processor_id.html}
{$form.event_id.label} {$form.event_id.html} {if $is_test} {ts}(test){/ts} {/if}
{$form.role_id.label} {$form.role_id.html}
{$form.register_date.label} {if $hideCalendar neq true} {include file="CRM/common/jcalendar.tpl" elementName=register_date} {else} {$form.register_date.value|crmDate} {/if}
{$form.status_id.label} {$form.status_id.html}{if $event_is_test} {ts}(test){/ts}{/if}
{$form.is_notify.html}{$form.is_notify.label}
{$form.source.label}{$form.source.html|crmAddClass:huge}
{ts}Source for this registration (if applicable).{/ts}
{if $participantId and $hasPayment} {* this is where the payment info is shown using CRM/Contribute/Page/PaymentInfo.tpl tpl*}
{ts}Fees{/ts}
{/if} {* Fee block (EventFees.tpl) is injected here when an event is selected. *}
{$form.note.label}{$form.note.html}
{* Participant Custom data *}
{* Event Custom Data *}
{* Role Custom Data *}
{* Role Custom Data *}
{/if} {if $accessContribution and $action eq 2 and $rows.0.contribution_id} {include file="CRM/Contribute/Form/Selector.tpl" context="Search"} {/if}
{include file="CRM/common/formButtons.tpl" location="bottom"}
{* JS block for ADD or UPDATE actions only *} {if $action eq 1 or $action eq 2} {if $participantId and $hasPayment} {include file="CRM/Contribute/Page/PaymentInfo.tpl" show='event-payment'} {/if} {*include custom data js file*} {include file="CRM/common/customData.tpl"} {/literal} {/if} {/if} {* end of main event block*}