2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
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 +--------------------------------------------------------------------+
26 {* View existing event registration record. *}
27 <div class="crm-block crm-content-block crm-event-participant-view-form-block">
28 <div class="action-link">
29 <div class="crm-submit-buttons">
30 {if call_user_func(array('CRM_Core_Permission','check'), 'edit event participants')}
31 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event"}
32 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
33 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event&key=$searchKey"}
35 <a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$urlParams}" accesskey="e"><span><div class="icon edit-icon"></div> {ts}Edit{/ts}</span></a>
37 {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviEvent')}
38 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event"}
39 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
40 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event&key=$searchKey"}
42 <a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$urlParams}"><span><div class="icon delete-icon"></div> {ts}Delete{/ts}</span></a>
44 {include file="CRM/common/formButtons.tpl" location="top"}
47 <table class="crm-info-panel">
48 <tr class="crm-event-participantview-form-block-displayName">
49 <td class="label">{ts}Participant Name{/ts}</td>
51 <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$contact_id"}" title="view contact record">{$displayName}</a>
52 <div class="crm-submit-buttons">
53 <a class="button" href="{crmURL p='civicrm/event/badge' q="reset=1&context=view&id=$id&cid=$contact_id"}" title="{ts}Print Event Name Badge{/ts}"><span><div class="icon print-icon"></div> {ts}Print Name Badge{/ts}</span></a>
57 {if $participant_registered_by_id} {* Display primary participant *}
58 <tr class="crm-event-participantview-form-block-registeredBy">
59 <td class="label">{ts}Registered By{/ts}</td>
60 <td><a href="{crmURL p='civicrm/contact/view/participant' q="reset=1&id=$participant_registered_by_id&cid=$registered_by_contact_id&action=view"}" title="{ts}view primary participant{/ts}">{$registered_by_display_name}</a></td>
63 {if $additionalParticipants} {* Display others registered by this participant *}
64 <tr class="crm-event-participantview-form-block-additionalParticipants">
65 <td class="label">{ts}Also Registered by this Participant{/ts}</td>
67 {foreach from=$additionalParticipants key=apName item=apURL}
68 <a href="{$apURL}" title="{ts}view additional participant{/ts}">{$apName}</a><br />
73 <tr class="crm-event-participantview-form-block-event">
74 <td class="label">{ts}Event{/ts}</td><td>
75 <a href="{crmURL p='civicrm/event/manage/settings' q="action=update&reset=1&id=$event_id"}" title="{ts}Configure this event{/ts}">{$event}</a>
80 <tr class="crm-event-participantview-form-block-campaign">
81 <td class="label">{ts}Campaign{/ts}</td>
86 <tr class="crm-event-participantview-form-block-role">
87 <td class="label">{ts}Participant Role{/ts}</td>
89 <tr class="crm-event-participantview-form-block-register_date">
90 <td class="label">{ts}Registration Date and Time{/ts}</td>
91 <td>{$register_date|crmDate} </td>
93 <tr class="crm-event-participantview-form-block-status">
94 <td class="label">{ts}Status{/ts}</td><td>{$status} </td>
97 <tr class="crm-event-participantview-form-block-event_source">
98 <td class="label">{ts}Event Source{/ts}</td><td>{$source} </td>
101 {if $participantId and $hasPayment}
103 <td class='label'>{ts}Fees{/ts}</td>
104 <td id='payment-info'></td>
108 <tr class="crm-event-participantview-form-block-fee_amount">
110 <td class="label">{ts}Selections{/ts}</td>
111 <td>{include file="CRM/Price/Page/LineItem.tpl" context="Event"}
112 {if $hasPayment or $parentHasPayment}
113 <a class="button" href='{crmURL p="civicrm/event/participant/feeselection" q="reset=1&id=`$participantId`&cid=`$contactId`&action=update"}' title="{ts}Change Selections{/ts}"><span><div class="icon edit-icon"></div> {ts}Change Selections{/ts}</span></a>
117 <td class="label">{ts}Event Level{/ts}</td>
118 <td>{$fee_level} {if $fee_amount}- {$fee_amount|crmMoney:$fee_currency}{/if}</td>
122 {foreach from=$note item="rec"}
124 <tr><td class="label">{ts}Note{/ts}</td><td>{$rec|nl2br}</td></tr>
128 {if $participantId and $hasPayment}
129 {include file="CRM/Contribute/Page/PaymentInfo.tpl" show='event-payment'}
131 {include file="CRM/Custom/Page/CustomDataView.tpl"}
132 {if $accessContribution and $rows.0.contribution_id}
133 {include file="CRM/Contribute/Form/Selector.tpl" context="Search"}
135 <div class="crm-submit-buttons">
136 {if call_user_func(array('CRM_Core_Permission','check'), 'edit event participants')}
137 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event"}
138 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
139 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event&key=$searchKey"}
142 <a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$urlParams}" accesskey="e"><span><div class="icon edit-icon"></div> {ts}Edit{/ts}</span></a>
144 {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviEvent')}
145 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event"}
146 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
147 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event&key=$searchKey"}
149 <a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$urlParams}"><span><div class="icon delete-icon"></div> {ts}Delete{/ts}</span></a>
151 {include file="CRM/common/formButtons.tpl" location="bottom"}