commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / templates / CRM / Event / Page / Tab.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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 {if $action eq 1 or $action eq 2 or $action eq 8} {* add, update or view *}
27 {include file="CRM/Event/Form/Participant.tpl"}
28 {elseif $action eq 4}
29 {include file="CRM/Event/Form/ParticipantView.tpl"}
30 {else}
31 {if $permission EQ 'edit'}{capture assign=newEventURL}{crmURL p="civicrm/contact/view/participant" q="reset=1&action=add&cid=`$contactId`&context=participant"}{/capture}
32 {/if}
33
34 <div id="help">
35 <p>{ts 1=$displayName}This page lists all event registrations for %1 since inception.{/ts}
36 {capture assign="link"}class="action-item" href="{$newEventURL}"{/capture}
37 {if $permission EQ 'edit'}{ts 1=$link}Click <a %1>Add Event Registration</a> to register this contact for an event.{/ts}{/if}
38 {if $accessContribution and $newCredit}
39 {capture assign=newCreditURL}{crmURL p="civicrm/contact/view/participant" q="reset=1&action=add&cid=`$contactId`&context=participant&mode=live"}{/capture}
40 {capture assign="link"}class="action-item" href="{$newCreditURL}"{/capture}
41 {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}
42 {/if}
43 </p>
44 </div>
45 {if $action eq 16 and $permission EQ 'edit'}
46 <div class="action-link">
47 <a accesskey="N" href="{$newEventURL}" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Event Registration{/ts}</span></a>
48 {if $accessContribution and $newCredit}
49 <a accesskey="N" href="{$newCreditURL}" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Submit Credit Card Event Registration{/ts}</a></span>
50 {/if}
51 <br/ ><br/ >
52 </div>
53 {/if}
54
55 {if $rows}
56 {include file="CRM/common/pager.tpl" location="top"}
57 {include file="CRM/Event/Form/Selector.tpl"}
58 {include file="CRM/common/pager.tpl" location="bottom"}
59 {else}
60 <div class="messages status no-popup">
61 <table class="form-layout">
62 <tr><div class="icon inform-icon"></div>
63 {ts}No event registrations have been recorded for this contact.{/ts}
64 </tr>
65 </table>
66 </div>
67 {/if}
68 {/if}