Commit | Line | Data |
---|---|---|
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 | {* View existing event registration record. *} | |
27 | <div class="crm-block crm-content-block crm-event-participant-view-form-block"> | |
28 | <h3>{ts}View Participant{/ts}</h3> | |
29 | <div class="action-link"> | |
30 | <div class="crm-submit-buttons"> | |
31 | {if call_user_func(array('CRM_Core_Permission','check'), 'edit event participants')} | |
32 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event"} | |
33 | {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} | |
34 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event&key=$searchKey"} | |
35 | {/if} | |
36 | <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} | |
38 | {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviEvent')} | |
39 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event"} | |
40 | {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} | |
41 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event&key=$searchKey"} | |
42 | {/if} | |
43 | <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 | {/if} | |
45 | {include file="CRM/common/formButtons.tpl" location="top"} | |
46 | </div> | |
47 | </div> | |
48 | <table class="crm-info-panel"> | |
49 | <tr class="crm-event-participantview-form-block-displayName"> | |
50 | <td class="label">{ts}Participant Name{/ts}</td> | |
51 | <td class="bold"> | |
52 | <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$contact_id"}" title="view contact record">{$displayName}</a> | |
53 | <div class="crm-submit-buttons"> | |
54 | <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> | |
55 | </div> | |
56 | </td> | |
57 | </tr> | |
58 | {if $participant_registered_by_id} {* Display primary participant *} | |
59 | <tr class="crm-event-participantview-form-block-registeredBy"> | |
60 | <td class="label">{ts}Registered By{/ts}</td> | |
61 | <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> | |
62 | </tr> | |
63 | {/if} | |
64 | {if $additionalParticipants} {* Display others registered by this participant *} | |
65 | <tr class="crm-event-participantview-form-block-additionalParticipants"> | |
66 | <td class="label">{ts}Also Registered by this Participant{/ts}</td> | |
67 | <td> | |
68 | {foreach from=$additionalParticipants key=apName item=apURL} | |
69 | <a href="{$apURL}" title="{ts}view additional participant{/ts}">{$apName}</a><br /> | |
70 | {/foreach} | |
71 | </td> | |
72 | </tr> | |
73 | {/if} | |
74 | <tr class="crm-event-participantview-form-block-event"> | |
75 | <td class="label">{ts}Event{/ts}</td><td> | |
76 | <a href="{crmURL p='civicrm/event/manage/settings' q="action=update&reset=1&id=$event_id"}" title="{ts}Configure this event{/ts}">{$event}</a> | |
77 | </td> | |
78 | </tr> | |
79 | ||
80 | {if $campaign} | |
81 | <tr class="crm-event-participantview-form-block-campaign"> | |
82 | <td class="label">{ts}Campaign{/ts}</td> | |
83 | <td>{$campaign}</td> | |
84 | </tr> | |
85 | {/if} | |
86 | ||
87 | <tr class="crm-event-participantview-form-block-role"> | |
88 | <td class="label">{ts}Participant Role{/ts}</td> | |
89 | <td>{$role}</td></tr> | |
90 | <tr class="crm-event-participantview-form-block-register_date"> | |
91 | <td class="label">{ts}Registration Date and Time{/ts}</td> | |
92 | <td>{$register_date|crmDate} </td> | |
93 | </tr> | |
94 | <tr class="crm-event-participantview-form-block-status"> | |
95 | <td class="label">{ts}Status{/ts}</td><td>{$status} </td> | |
96 | </tr> | |
97 | {if $source} | |
98 | <tr class="crm-event-participantview-form-block-event_source"> | |
99 | <td class="label">{ts}Event Source{/ts}</td><td>{$source} </td> | |
100 | </tr> | |
101 | {/if} | |
0b2b58ea | 102 | {if $participantId and $hasPayment} |
fbc54416 PJ |
103 | <tr> |
104 | <td class='label'>{ts}Fees{/ts}</td> | |
105 | <td id='payment-info'></td> | |
106 | </tr> | |
107 | {/if} | |
6a488035 TO |
108 | {if $fee_level} |
109 | <tr class="crm-event-participantview-form-block-fee_amount"> | |
110 | {if $lineItem} | |
1a0d17b9 PJ |
111 | <td class="label">{ts}Selections{/ts}</td> |
112 | <td>{include file="CRM/Price/Page/LineItem.tpl" context="Event"} | |
0b2b58ea | 113 | {if $hasPayment} |
1a0d17b9 | 114 | <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> |
0b2b58ea | 115 | {/if} |
1a0d17b9 | 116 | </td> |
6a488035 TO |
117 | {else} |
118 | <td class="label">{ts}Event Level{/ts}</td> | |
119 | <td>{$fee_level} {if $fee_amount}- {$fee_amount|crmMoney:$fee_currency}{/if}</td> | |
120 | {/if} | |
121 | </tr> | |
122 | {/if} | |
123 | {foreach from=$note item="rec"} | |
124 | {if $rec } | |
b45b9ad3 | 125 | <tr><td class="label">{ts}Note{/ts}</td><td>{$rec|nl2br}</td></tr> |
6a488035 TO |
126 | {/if} |
127 | {/foreach} | |
128 | </table> | |
0b2b58ea | 129 | {if $participantId and $hasPayment} |
fbc54416 PJ |
130 | {include file="CRM/Contribute/Page/PaymentInfo.tpl" show='event-payment'} |
131 | {/if} | |
6a488035 TO |
132 | {include file="CRM/Custom/Page/CustomDataView.tpl"} |
133 | {if $accessContribution and $rows.0.contribution_id} | |
134 | {include file="CRM/Contribute/Form/Selector.tpl" context="Search"} | |
135 | {/if} | |
136 | <div class="crm-submit-buttons"> | |
137 | {if call_user_func(array('CRM_Core_Permission','check'), 'edit event participants')} | |
138 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event"} | |
139 | {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} | |
140 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event&key=$searchKey"} | |
141 | {/if} | |
142 | ||
143 | <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} | |
145 | {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviEvent')} | |
146 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event"} | |
147 | {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} | |
148 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event&key=$searchKey"} | |
149 | {/if} | |
150 | <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 | {/if} | |
152 | {include file="CRM/common/formButtons.tpl" location="bottom"} | |
153 | </div> | |
154 | </div> |