| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.3 | |
| 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} |
| 102 | {if $fee_level} |
| 103 | <tr class="crm-event-participantview-form-block-fee_amount"> |
| 104 | {if $lineItem} |
| 105 | <td class="label">{ts}Event Fees{/ts}</td> |
| 106 | <td>{include file="CRM/Price/Page/LineItem.tpl" context="Event"}</td> |
| 107 | {else} |
| 108 | <td class="label">{ts}Event Level{/ts}</td> |
| 109 | <td>{$fee_level} {if $fee_amount}- {$fee_amount|crmMoney:$fee_currency}{/if}</td> |
| 110 | {/if} |
| 111 | </tr> |
| 112 | {/if} |
| 113 | {foreach from=$note item="rec"} |
| 114 | {if $rec } |
| 115 | <tr><td class="label">{ts}Note{/ts}</td><td>{$rec}</td></tr> |
| 116 | {/if} |
| 117 | {/foreach} |
| 118 | </table> |
| 119 | {include file="CRM/Custom/Page/CustomDataView.tpl"} |
| 120 | {if $accessContribution and $rows.0.contribution_id} |
| 121 | {include file="CRM/Contribute/Form/Selector.tpl" context="Search"} |
| 122 | {/if} |
| 123 | <div class="crm-submit-buttons"> |
| 124 | {if call_user_func(array('CRM_Core_Permission','check'), 'edit event participants')} |
| 125 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event"} |
| 126 | {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} |
| 127 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event&key=$searchKey"} |
| 128 | {/if} |
| 129 | |
| 130 | <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> |
| 131 | {/if} |
| 132 | {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviEvent')} |
| 133 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event"} |
| 134 | {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} |
| 135 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event&key=$searchKey"} |
| 136 | {/if} |
| 137 | <a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$urlParams}"><span><div class="icon delete-icon"></div> {ts}Delete{/ts}</span></a> |
| 138 | {/if} |
| 139 | {include file="CRM/common/formButtons.tpl" location="bottom"} |
| 140 | </div> |
| 141 | </div> |