| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.7 | |
| 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 | {* 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 ui-icon-arrow-1-se css_right"></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 ui-icon-arrow-1-se css_right"></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 | CRM.$(function($) { |
| 79 | $('body').click(function() { |
| 80 | $('#crm-event-links-list, #crm-participant-list').hide(); |
| 81 | }); |
| 82 | |
| 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 | }); |
| 96 | |
| 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 | }); |
| 105 | |
| 106 | }); |
| 107 | </script> |
| 108 | {/literal} |
| 109 | {include file="CRM/Event/Form/ManageEvent/ConfirmRepeatMode.tpl" entityID=$id entityTable="civicrm_event"} |