Merge pull request #129 from dlobo/CRM-12101
[civicrm-core.git] / templates / CRM / Event / Form / ManageEvent / Tab.tpl
CommitLineData
6a488035
TO
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{* Don't show action buttons for event templates *}
27{if ! $isTemplate}
28 <div class="crm-actions-ribbon crm-event-manage-tab-actions-ribbon">
29 <ul id="actions">
30 <li><div id="crm-event-links-wrapper">
31 <a id="crm-event-links-link" class="button"><span><div class="icon dropdown-icon"></div>{ts}Event Links{/ts}</span></a>
32 <div class="ac_results" id="crm-event-links-list">
33 <div class="crm-event-links-list-inner">
34 <ul>
35 <li><a class="crm-event-participant" href="{crmURL p='civicrm/participant/add' q="reset=1&action=add&context=standalone&eid=`$id`"}">{ts}Register Participant{/ts}</a></li>
36 <li><a class="crm-event-info" href="{crmURL p='civicrm/event/info' q="reset=1&id=`$id`" fe='true'}" target="_blank">{ts}Event Info{/ts}</a></li>
37 {if $isOnlineRegistration}
38 <li><a class="crm-event-test" href="{crmURL p='civicrm/event/register' q="reset=1&action=preview&id=`$id`"}">{ts}Online Registration (Test-drive){/ts}</a></li>
39 <li><a class="crm-event-live" href="{crmURL p='civicrm/event/register' q="reset=1&id=`$id`" fe='true'}" target="_blank">{ts}Online Registration (Live){/ts}</a></li>
40 {/if}
41 </ul>
42 </div>
43 </div>
44 </div></li>
45
46 <li><div id="crm-participant-wrapper">
47 <a id="crm-participant-link" class="button"><span><div class="icon dropdown-icon"></div>{ts}Find Participants{/ts}</span></a>
48 <div class="ac_results" id="crm-participant-list">
49 <div class="crm-participant-list-inner">
50 <ul>
51 {if $findParticipants.statusCounted}
52 <li><a class="crm-participant-counted" href="{crmURL p='civicrm/event/search' q="reset=1&force=1&event=`$id`&status=true"}">{$findParticipants.statusCounted|replace:'/':', '}</a></li>
53 {/if}
54 {if $findParticipants.statusNotCounted}
55 <li><a class="crm-participant-not-counted" href="{crmURL p='civicrm/event/search' q="reset=1&force=1&event=`$id`&status=false"}">{$findParticipants.statusNotCounted|replace:'/':', '}</a>
56 </li>
57 {/if}
58 {if $participantListingURL}
59 <li><a class="crm-participant-listing" href="{$participantListingURL}">{ts}Public Participant Listing{/ts}</a></li>
60 {/if}
61 </ul>
62 </div>
63 </div>
64 </div></li>
65
66 <li><div>
67 {help id="id-configure-events" isTemplate=$isTemplate participantListingURL=$participantListingURL isOnlineRegistration=$isOnlineRegistration eventId=$id}
68 </div></li>
69 </ul>
70 <div class="clear"></div>
71 </div>
72{/if}
73
74{include file="CRM/common/TabHeader.tpl"}
75
76{literal}
77<script>
78
79cj('body').click(function() {
80 cj('#crm-event-links-list').hide();
81 cj('#crm-participant-list').hide();
82 });
83
84cj('#crm-event-links-link').click(function(event) {
85 cj('#crm-event-links-list').toggle();
86 cj('#crm-participant-list').hide();
87 event.stopPropagation();
88 return false;
89});
90
91cj('#crm-participant-link').click(function(event) {
92 cj('#crm-participant-list').toggle();
93 cj('#crm-event-links-list').hide();
94 event.stopPropagation();
95 return false;
96});
97
98cj().crmAccordions();
99
100</script>
101{/literal}