Merge pull request #17163 from jitendrapurohit/core-1731
[civicrm-core.git] / templates / CRM / Event / Page / Tab.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 |
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
18 <div class="help">
19 <p>{ts 1=$displayName}This page lists all event registrations for %1 since inception.{/ts}
20 {capture assign="link"}class="action-item" href="{$newEventURL}"{/capture}
21 {if $permission EQ 'edit'}{ts 1=$link}Click <a %1>Add Event Registration</a> to register this contact for an event.{/ts}{/if}
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}
24 {capture assign="link"}class="action-item" href="{$newCreditURL}"{/capture}
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}
26 {/if}
27 </p>
28 </div>
29 {if $action eq 16 and $permission EQ 'edit'}
30 <div class="action-link">
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>
32 {if $accessContribution and $newCredit}
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>
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">
46 <tr><div class="icon inform-icon"></div>
47 {ts}No event registrations have been recorded for this contact.{/ts}
48 </tr>
49 </table>
50 </div>
51 {/if}
52 {/if}