Merge pull request #14662 from eileenmcnaughton/activity_pdf_71
[civicrm-core.git] / templates / CRM / Campaign / Page / Vote.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 {* Voting Tab Interface - Easy way to get the voter Interview. *}
11 {if $subPageType eq 'interview'}
12 {* build the voter interview grid here *}
13 {include file='CRM/Campaign/Form/Task/Interview.tpl'}
14 {elseif $subPageType eq 'reserve'}
15 {* build the ajax search and voters reserve interface here *}
16 {include file='CRM/Campaign/Form/Gotv.tpl'}
17 {elseif $tabHeader}
18 {include file="CRM/common/TabHeader.tpl"}
19 <script type="text/javascript">
20 {* very crude refresh of tabs - fixme: use datatable native refresh method *}
21 {literal}
22 CRM.$(function($) {
23 $('#mainTabContainer').on('tabsbeforeactivate', function(e, ui) {
24 // fixme - can't search more than once! Uncomment this code, switching tabs gives qfkey error.
25 //if (ui.newTab.is('#tab_reserve')) {
26 //$('.searchVoter.button').click();
27 ui.oldPanel.data('civiCrmSnippet') && ui.oldPanel.crmSnippet('destroy');
28 //}
29 });
30 });
31 {/literal}
32 </script>
33
34 {else}
35 <div class="messages status no-popup">
36 <div class="icon inform-icon"></div>
37 {ts}You are not authorized to access this page.{/ts}
38 </div>
39 {/if}