Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
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 | | |
6a488035 TO |
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'} | |
349a45b7 | 17 | {elseif $tabHeader} |
4165b7e5 | 18 | {include file="CRM/common/TabHeader.tpl"} |
6a84d0fb CW |
19 | <script type="text/javascript"> |
20 | {* very crude refresh of tabs - fixme: use datatable native refresh method *} | |
21 | {literal} | |
3cc60a06 | 22 | CRM.$(function($) { |
6a84d0fb CW |
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 | ||
6a488035 TO |
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} |