Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
e7112fa7 | 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
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 | {* View existing event registration record. *} | |
27 | <div class="crm-block crm-content-block crm-event-participant-view-form-block"> | |
6a488035 TO |
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"} | |
34 | {/if} | |
52604b19 | 35 | <a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$urlParams}" accesskey="e"><span><div class="icon ui-icon-pencil"></div> {ts}Edit{/ts}</span></a> |
6a488035 TO |
36 | {/if} |
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"} | |
41 | {/if} | |
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> | |
43 | {/if} | |
44 | {include file="CRM/common/formButtons.tpl" location="top"} | |
45 | </div> | |
46 | </div> | |
47 | <table class="crm-info-panel"> | |
48 | <tr class="crm-event-participantview-form-block-displayName"> | |
49 | <td class="label">{ts}Participant Name{/ts}</td> | |
c8849f1c CW |
50 | <td> |
51 | <strong><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$contact_id"}" title="{ts}View contact record{/ts}">{$displayName}</a></strong> | |
52 | <div> | |
53 | <a class="action-item crm-hover-button" href="{crmURL p='civicrm/event/badge' q="reset=1&context=view&id=$id&cid=$contact_id"}"><span class="icon ui-icon-print"></span> {ts}Print Name Badge{/ts}</a> | |
6a488035 TO |
54 | </div> |
55 | </td> | |
56 | </tr> | |
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> | |
61 | </tr> | |
62 | {/if} | |
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> | |
66 | <td> | |
67 | {foreach from=$additionalParticipants key=apName item=apURL} | |
68 | <a href="{$apURL}" title="{ts}view additional participant{/ts}">{$apName}</a><br /> | |
69 | {/foreach} | |
70 | </td> | |
71 | </tr> | |
72 | {/if} | |
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> | |
76 | </td> | |
77 | </tr> | |
78 | ||
79 | {if $campaign} | |
80 | <tr class="crm-event-participantview-form-block-campaign"> | |
81 | <td class="label">{ts}Campaign{/ts}</td> | |
82 | <td>{$campaign}</td> | |
83 | </tr> | |
84 | {/if} | |
85 | ||
86 | <tr class="crm-event-participantview-form-block-role"> | |
87 | <td class="label">{ts}Participant Role{/ts}</td> | |
88 | <td>{$role}</td></tr> | |
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> | |
92 | </tr> | |
93 | <tr class="crm-event-participantview-form-block-status"> | |
94 | <td class="label">{ts}Status{/ts}</td><td>{$status} </td> | |
95 | </tr> | |
96 | {if $source} | |
97 | <tr class="crm-event-participantview-form-block-event_source"> | |
98 | <td class="label">{ts}Event Source{/ts}</td><td>{$source} </td> | |
99 | </tr> | |
100 | {/if} | |
0b2b58ea | 101 | {if $participantId and $hasPayment} |
fbc54416 PJ |
102 | <tr> |
103 | <td class='label'>{ts}Fees{/ts}</td> | |
104 | <td id='payment-info'></td> | |
105 | </tr> | |
106 | {/if} | |
6a488035 TO |
107 | {if $fee_level} |
108 | <tr class="crm-event-participantview-form-block-fee_amount"> | |
109 | {if $lineItem} | |
1a0d17b9 PJ |
110 | <td class="label">{ts}Selections{/ts}</td> |
111 | <td>{include file="CRM/Price/Page/LineItem.tpl" context="Event"} | |
b62951e0 MW |
112 | {if call_user_func(array('CRM_Core_Permission','check'), 'edit event participants')} |
113 | {if $hasPayment or $parentHasPayment} | |
114 | <a class="action-item crm-hover-button" href='{crmURL p="civicrm/event/participant/feeselection" q="reset=1&id=`$participantId`&cid=`$contactId`&action=update"}'><span class="icon ui-icon-pencil"></span> {ts}Change Selections{/ts}</a> | |
115 | {/if} | |
0b2b58ea | 116 | {/if} |
1a0d17b9 | 117 | </td> |
6a488035 TO |
118 | {else} |
119 | <td class="label">{ts}Event Level{/ts}</td> | |
120 | <td>{$fee_level} {if $fee_amount}- {$fee_amount|crmMoney:$fee_currency}{/if}</td> | |
121 | {/if} | |
122 | </tr> | |
123 | {/if} | |
124 | {foreach from=$note item="rec"} | |
125 | {if $rec } | |
b45b9ad3 | 126 | <tr><td class="label">{ts}Note{/ts}</td><td>{$rec|nl2br}</td></tr> |
6a488035 TO |
127 | {/if} |
128 | {/foreach} | |
129 | </table> | |
0b2b58ea | 130 | {if $participantId and $hasPayment} |
fbc54416 PJ |
131 | {include file="CRM/Contribute/Page/PaymentInfo.tpl" show='event-payment'} |
132 | {/if} | |
6a488035 TO |
133 | {include file="CRM/Custom/Page/CustomDataView.tpl"} |
134 | {if $accessContribution and $rows.0.contribution_id} | |
135 | {include file="CRM/Contribute/Form/Selector.tpl" context="Search"} | |
136 | {/if} | |
137 | <div class="crm-submit-buttons"> | |
138 | {if call_user_func(array('CRM_Core_Permission','check'), 'edit event participants')} | |
139 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event"} | |
140 | {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} | |
141 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event&key=$searchKey"} | |
142 | {/if} | |
143 | ||
52604b19 | 144 | <a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$urlParams}" accesskey="e"><span><div class="icon ui-icon-pencil"></div> {ts}Edit{/ts}</span></a> |
6a488035 TO |
145 | {/if} |
146 | {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviEvent')} | |
147 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event"} | |
148 | {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} | |
149 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event&key=$searchKey"} | |
150 | {/if} | |
151 | <a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$urlParams}"><span><div class="icon delete-icon"></div> {ts}Delete{/ts}</span></a> | |
152 | {/if} | |
153 | {include file="CRM/common/formButtons.tpl" location="bottom"} | |
154 | </div> | |
155 | </div> |