Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | {if $action eq 1 or $action eq 2 or $action eq 8} {* add, update or view *} | |
11 | {include file="CRM/Event/Form/Participant.tpl"} | |
12 | {elseif $action eq 4} | |
13 | {include file="CRM/Event/Form/ParticipantView.tpl"} | |
14 | {else} | |
15 | {if $permission EQ 'edit'}{capture assign=newEventURL}{crmURL p="civicrm/contact/view/participant" q="reset=1&action=add&cid=`$contactId`&context=participant"}{/capture} | |
16 | {/if} | |
17 | ||
f6eedce7 | 18 | <div class="help"> |
6a488035 | 19 | <p>{ts 1=$displayName}This page lists all event registrations for %1 since inception.{/ts} |
a1c7d42f | 20 | {capture assign="link"}class="action-item" href="{$newEventURL}"{/capture} |
2c407361 | 21 | {if $permission EQ 'edit'}{ts 1=$link}Click <a %1>Add Event Registration</a> to register this contact for an event.{/ts}{/if} |
6a488035 TO |
22 | {if $accessContribution and $newCredit} |
23 | {capture assign=newCreditURL}{crmURL p="civicrm/contact/view/participant" q="reset=1&action=add&cid=`$contactId`&context=participant&mode=live"}{/capture} | |
a1c7d42f | 24 | {capture assign="link"}class="action-item" href="{$newCreditURL}"{/capture} |
2c407361 | 25 | {ts 1=$link}Click <a %1>Submit Credit Card Event Registration</a> to process a new New Registration on behalf of the participant using their credit card.{/ts} |
6a488035 TO |
26 | {/if} |
27 | </p> | |
28 | </div> | |
29 | {if $action eq 16 and $permission EQ 'edit'} | |
30 | <div class="action-link"> | |
13a3d214 | 31 | <a accesskey="N" href="{$newEventURL}" class="button"><span><i class="crm-i fa-plus-circle" aria-hidden="true"></i> {ts}Add Event Registration{/ts}</span></a> |
6a488035 | 32 | {if $accessContribution and $newCredit} |
13a3d214 | 33 | <a accesskey="N" href="{$newCreditURL}" class="button"><span><i class="crm-i fa-credit-card" aria-hidden="true"></i> {ts}Submit Credit Card Event Registration{/ts}</a></span> |
6a488035 TO |
34 | {/if} |
35 | <br/ ><br/ > | |
36 | </div> | |
37 | {/if} | |
38 | ||
39 | {if $rows} | |
40 | {include file="CRM/common/pager.tpl" location="top"} | |
41 | {include file="CRM/Event/Form/Selector.tpl"} | |
42 | {include file="CRM/common/pager.tpl" location="bottom"} | |
43 | {else} | |
44 | <div class="messages status no-popup"> | |
45 | <table class="form-layout"> | |
34d6cec4 | 46 | <tr>{icon icon="fa-info-circle"}{/icon} |
6a488035 TO |
47 | {ts}No event registrations have been recorded for this contact.{/ts} |
48 | </tr> | |
49 | </table> | |
50 | </div> | |
51 | {/if} | |
232624b1 | 52 | {/if} |