commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / templates / CRM / Campaign / Page / Vote.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
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 {* 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'}
33 {elseif $tabHeader}
34 {include file="CRM/common/TabHeader.tpl"}
35 <script type="text/javascript">
36 {* very crude refresh of tabs - fixme: use datatable native refresh method *}
37 {literal}
38 CRM.$(function($) {
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
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}