recurring activities in create mode
[civicrm-core.git] / templates / CRM / Event / Form / ManageEvent / Tab.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
819d0d41 3 | CiviCRM version 4.5 |
6a488035 4 +--------------------------------------------------------------------+
819d0d41 5 | Copyright CiviCRM LLC (c) 2004-2014 |
6a488035
TO
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
4165b7e5 74{include file="CRM/common/TabHeader.tpl"}
6a488035
TO
75
76{literal}
77<script>
3cc60a06 78CRM.$(function($) {
5d92a7e7
CW
79 $('body').click(function() {
80 $('#crm-event-links-list, #crm-participant-list').hide();
6a488035
TO
81 });
82
5d92a7e7
CW
83 $('#crm-event-links-link').click(function(event) {
84 $('#crm-event-links-list').toggle();
85 $('#crm-participant-list').hide();
86 event.stopPropagation();
87 return false;
88 });
89
90 $('#crm-participant-link').click(function(event) {
91 $('#crm-participant-list').toggle();
92 $('#crm-event-links-list').hide();
93 event.stopPropagation();
94 return false;
95 });
6a488035 96
5d92a7e7
CW
97 // Update title dynamically
98 $('h1').each(function() {
99 var title = {/literal}{$title|json_encode}{literal};
100 $(this).html($(this).html().replace(title, '<span id="crm-event-name-page-title">' + title + '</span>'));
101 });
102 $('#crm-main-content-wrapper').on('keyup change', 'input#title', function() {
103 $('#crm-event-name-page-title').text($(this).val());
104 });
80cc23f4 105
6a488035 106});
6a488035
TO
107</script>
108{/literal}
9d51ce3f 109{include file="CRM/Event/Form/ManageEvent/ConfirmRepeatMode.tpl" entityID=$id entityTable="civicrm_event"}