Ian province abbreviation patch - issue 724
[civicrm-core.git] / templates / CRM / Campaign / Page / Vote.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
2c4c49ca 3 | CiviCRM version 4.7 |
6a488035 4 +--------------------------------------------------------------------+
e7112fa7 5 | Copyright CiviCRM LLC (c) 2004-2015 |
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{* Voting Tab Interface - Easy way to get the voter Interview. *}
27{if $subPageType eq 'interview'}
28 {* build the voter interview grid here *}
29 {include file='CRM/Campaign/Form/Task/Interview.tpl'}
30{elseif $subPageType eq 'reserve'}
31 {* build the ajax search and voters reserve interface here *}
32 {include file='CRM/Campaign/Form/Gotv.tpl'}
349a45b7 33{elseif $tabHeader}
4165b7e5 34 {include file="CRM/common/TabHeader.tpl"}
6a84d0fb
CW
35 <script type="text/javascript">
36 {* very crude refresh of tabs - fixme: use datatable native refresh method *}
37 {literal}
3cc60a06 38 CRM.$(function($) {
6a84d0fb
CW
39 $('#mainTabContainer').on('tabsbeforeactivate', function(e, ui) {
40 // fixme - can't search more than once! Uncomment this code, switching tabs gives qfkey error.
41 //if (ui.newTab.is('#tab_reserve')) {
42 //$('.searchVoter.button').click();
43 ui.oldPanel.data('civiCrmSnippet') && ui.oldPanel.crmSnippet('destroy');
44 //}
45 });
46 });
47 {/literal}
48 </script>
49
6a488035
TO
50{else}
51 <div class="messages status no-popup">
52 <div class="icon inform-icon"></div>
53 {ts}You are not authorized to access this page.{/ts}
54 </div>
55{/if}