Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-01-27-22-52-52
[civicrm-core.git] / templates / CRM / Event / Form / ParticipantView.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.4 |
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}&nbsp;</td>
93 </tr>
94 <tr class="crm-event-participantview-form-block-status">
95 <td class="label">{ts}Status{/ts}</td><td>{$status}&nbsp;</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}&nbsp;</td>
100 </tr>
101 {/if}
102 {if $participantId}
103 <tr>
104 <td class='label'>{ts}Fees{/ts}</td>
105 <td id='payment-info'></td>
106 </tr>
107 {/if}
108 {if $fee_level}
109 <tr class="crm-event-participantview-form-block-fee_amount">
110 {if $lineItem}
111 <td class="label">{ts}Selections{/ts}</td>
112 <td>{include file="CRM/Price/Page/LineItem.tpl" context="Event"}
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 </td>
115 {else}
116 <td class="label">{ts}Event Level{/ts}</td>
117 <td>{$fee_level}&nbsp;{if $fee_amount}- {$fee_amount|crmMoney:$fee_currency}{/if}</td>
118 {/if}
119 </tr>
120 {/if}
121 {foreach from=$note item="rec"}
122 {if $rec }
123 <tr><td class="label">{ts}Note{/ts}</td><td>{$rec|nl2br}</td></tr>
124 {/if}
125 {/foreach}
126 </table>
127 {if $participantId}
128 {include file="CRM/Contribute/Page/PaymentInfo.tpl" show='event-payment'}
129 {/if}
130 {include file="CRM/Custom/Page/CustomDataView.tpl"}
131 {if $accessContribution and $rows.0.contribution_id}
132 {include file="CRM/Contribute/Form/Selector.tpl" context="Search"}
133 {/if}
134 <div class="crm-submit-buttons">
135 {if call_user_func(array('CRM_Core_Permission','check'), 'edit event participants')}
136 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event"}
137 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
138 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event&key=$searchKey"}
139 {/if}
140
141 <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>
142 {/if}
143 {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviEvent')}
144 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event"}
145 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
146 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event&key=$searchKey"}
147 {/if}
148 <a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$urlParams}"><span><div class="icon delete-icon"></div> {ts}Delete{/ts}</span></a>
149 {/if}
150 {include file="CRM/common/formButtons.tpl" location="bottom"}
151 </div>
152 </div>