Fix 'selectedChild' parameter for pages with tabs
[civicrm-core.git] / templates / CRM / Event / Form / ManageEvent / 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 {* Don't show action buttons for event templates *}
11 {if ! $isTemplate}
12 <div class="crm-actions-ribbon crm-event-manage-tab-actions-ribbon">
13 <ul id="actions">
14 <li><div id="crm-event-links-wrapper">
15 {crmButton id="crm-event-links-link" href="#" icon="bars"}{ts}Event Links{/ts}{/crmButton}
16 <div class="ac_results" id="crm-event-links-list">
17 <div class="crm-event-links-list-inner">
18 <ul>
19 <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>
20 <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>
21 {if $isOnlineRegistration}
22 <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>
23 <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>
24 {/if}
25 </ul>
26 </div>
27 </div>
28 </div></li>
29
30 <li><div id="crm-participant-wrapper">
31 {crmButton id="crm-participant-link" href="#" icon="bars"}{ts}Find Participants{/ts}{/crmButton}
32 <div class="ac_results" id="crm-participant-list">
33 <div class="crm-participant-list-inner">
34 <ul>
35 {if $findParticipants.statusCounted}
36 <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>
37 {/if}
38 {if $findParticipants.statusNotCounted}
39 <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>
40 </li>
41 {/if}
42 {if $participantListingURL}
43 <li><a class="crm-participant-listing" href="{$participantListingURL}">{ts}Public Participant Listing{/ts}</a></li>
44 {/if}
45 </ul>
46 </div>
47 </div>
48 </div></li>
49
50 <li><div>
51 {help id="id-configure-events" isTemplate=$isTemplate participantListingURL=$participantListingURL isOnlineRegistration=$isOnlineRegistration eventId=$id}
52 </div></li>
53 </ul>
54 <div class="clear"></div>
55 </div>
56 {/if}
57
58 {include file="CRM/common/TabHeader.tpl"}
59
60 {literal}
61 <script>
62 CRM.$(function($) {
63 $('body').click(function() {
64 $('#crm-event-links-list, #crm-participant-list').hide();
65 });
66
67 $('#crm-event-links-link').click(function(event) {
68 $('#crm-event-links-list').toggle();
69 $('#crm-participant-list').hide();
70 event.stopPropagation();
71 return false;
72 });
73
74 $('#crm-participant-link').click(function(event) {
75 $('#crm-participant-list').toggle();
76 $('#crm-event-links-list').hide();
77 event.stopPropagation();
78 return false;
79 });
80
81 // Update title dynamically
82 $('h1').each(function() {
83 var title = {/literal}{$title|json_encode}{literal};
84 $(this).html($(this).html().replace(title, '<span id="crm-event-name-page-title">' + title + '</span>'));
85 });
86 $('#crm-main-content-wrapper').on('keyup change', 'input#title', function() {
87 $('#crm-event-name-page-title').text($(this).val());
88 });
89
90 });
91 </script>
92 {/literal}
93 {include file="CRM/Event/Form/ManageEvent/ConfirmRepeatMode.tpl" entityID=$id entityTable="civicrm_event"}