2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
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 +--------------------------------------------------------------------+
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'}
18 {include file="CRM/common/TabHeader.tpl"}
19 <script type="text/javascript">
20 {* very crude refresh of tabs - fixme: use datatable native refresh method *}
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');
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}