CRM-16189, added link on contribution edit form to record payment for pending pay...
[civicrm-core.git] / templates / CRM / Event / Form / ParticipantView.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
2c4c49ca 3 | CiviCRM version 4.7 |
6a488035 4 +--------------------------------------------------------------------+
fa938177 5 | Copyright CiviCRM LLC (c) 2004-2016 |
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}
aac8c264 35 <a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$urlParams}" accesskey="e"><span><i class="crm-i fa-pencil"></i> {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}
aac8c264 42 <a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$urlParams}"><span><i class="crm-i fa-trash"></i> {ts}Delete{/ts}</span></a>
6a488035
TO
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>
aac8c264 53 <a class="action-item crm-hover-button" href="{crmURL p='civicrm/event/badge' q="reset=1&context=view&id=$id&cid=$contact_id"}"><i class="crm-i fa-print"></i> {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}&nbsp;</td>
92 </tr>
93 <tr class="crm-event-participantview-form-block-status">
97d8187a
DG
94 <td class="label">{ts}Status{/ts}</td><td>{$status}&nbsp;
95 {if $transferName}
96 {ts}(Transferred to <a href="{crmURL p='civicrm/contact/view/participant' q="action=view&reset=1&id=$pid&cid=$transferId"}" title="{ts}View this Participant{/ts}">{$transferName}</a>){/ts}
97 {/if}
98 </td>
6a488035
TO
99 </tr>
100 {if $source}
101 <tr class="crm-event-participantview-form-block-event_source">
102 <td class="label">{ts}Event Source{/ts}</td><td>{$source}&nbsp;</td>
103 </tr>
104 {/if}
0b2b58ea 105 {if $participantId and $hasPayment}
fbc54416
PJ
106 <tr>
107 <td class='label'>{ts}Fees{/ts}</td>
108 <td id='payment-info'></td>
109 </tr>
110 {/if}
6a488035
TO
111 {if $fee_level}
112 <tr class="crm-event-participantview-form-block-fee_amount">
113 {if $lineItem}
1a0d17b9
PJ
114 <td class="label">{ts}Selections{/ts}</td>
115 <td>{include file="CRM/Price/Page/LineItem.tpl" context="Event"}
b62951e0
MW
116 {if call_user_func(array('CRM_Core_Permission','check'), 'edit event participants')}
117 {if $hasPayment or $parentHasPayment}
aac8c264 118 <a class="action-item crm-hover-button" href='{crmURL p="civicrm/event/participant/feeselection" q="reset=1&id=`$participantId`&cid=`$contactId`&action=update"}'><i class="crm-i fa-pencil"></i> {ts}Change Selections{/ts}</a>
b62951e0 119 {/if}
0b2b58ea 120 {/if}
1a0d17b9 121 </td>
6a488035
TO
122 {else}
123 <td class="label">{ts}Event Level{/ts}</td>
124 <td>{$fee_level}&nbsp;{if $fee_amount}- {$fee_amount|crmMoney:$fee_currency}{/if}</td>
125 {/if}
126 </tr>
127 {/if}
128 {foreach from=$note item="rec"}
129 {if $rec }
b45b9ad3 130 <tr><td class="label">{ts}Note{/ts}</td><td>{$rec|nl2br}</td></tr>
6a488035
TO
131 {/if}
132 {/foreach}
133 </table>
0b2b58ea 134 {if $participantId and $hasPayment}
685dc433 135 {include file="CRM/Contribute/Page/PaymentInfo.tpl" show='payments'}
fbc54416 136 {/if}
6a488035
TO
137 {include file="CRM/Custom/Page/CustomDataView.tpl"}
138 {if $accessContribution and $rows.0.contribution_id}
139 {include file="CRM/Contribute/Form/Selector.tpl" context="Search"}
140 {/if}
141 <div class="crm-submit-buttons">
142 {if call_user_func(array('CRM_Core_Permission','check'), 'edit event participants')}
143 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event"}
144 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
145 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event&key=$searchKey"}
146 {/if}
147
aac8c264 148 <a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$urlParams}" accesskey="e"><span><i class="crm-i fa-pencil"></i> {ts}Edit{/ts}</span></a>
6a488035
TO
149 {/if}
150 {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviEvent')}
151 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event"}
152 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
153 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event&key=$searchKey"}
154 {/if}
aac8c264 155 <a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$urlParams}"><span><i class="crm-i fa-trash"></i> {ts}Delete{/ts}</span></a>
6a488035
TO
156 {/if}
157 {include file="CRM/common/formButtons.tpl" location="bottom"}
158 </div>
159</div>