Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-08-25-10-57-01
[civicrm-core.git] / templates / CRM / Event / Form / ParticipantView.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
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 <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}
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>
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>
50 <td class="bold">
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>
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}&nbsp;</td>
92 </tr>
93 <tr class="crm-event-participantview-form-block-status">
94 <td class="label">{ts}Status{/ts}</td><td>{$status}&nbsp;</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}&nbsp;</td>
99 </tr>
100 {/if}
101 {if $participantId and $hasPayment}
102 <tr>
103 <td class='label'>{ts}Fees{/ts}</td>
104 <td id='payment-info'></td>
105 </tr>
106 {/if}
107 {if $fee_level}
108 <tr class="crm-event-participantview-form-block-fee_amount">
109 {if $lineItem}
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>
114 {/if}
115 </td>
116 {else}
117 <td class="label">{ts}Event Level{/ts}</td>
118 <td>{$fee_level}&nbsp;{if $fee_amount}- {$fee_amount|crmMoney:$fee_currency}{/if}</td>
119 {/if}
120 </tr>
121 {/if}
122 {foreach from=$note item="rec"}
123 {if $rec }
124 <tr><td class="label">{ts}Note{/ts}</td><td>{$rec|nl2br}</td></tr>
125 {/if}
126 {/foreach}
127 </table>
128 {if $participantId and $hasPayment}
129 {include file="CRM/Contribute/Page/PaymentInfo.tpl" show='event-payment'}
130 {/if}
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"}
134 {/if}
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"}
140 {/if}
141
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>
143 {/if}
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"}
148 {/if}
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>
150 {/if}
151 {include file="CRM/common/formButtons.tpl" location="bottom"}
152 </div>
153 </div>