2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2016 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
26 {if !$printOnly} {* NO print section starts *}
28 {* build the print pdf buttons *}
29 <div class="crm-tasks">
30 {assign var=print value="_qf_"|cat:$form.formName|cat:"_submit_print"}
31 {assign var=pdf value="_qf_"|cat:$form.formName|cat:"_submit_pdf"}
32 {assign var=csv value="_qf_"|cat:$form.formName|cat:"_submit_csv"}
33 {assign var=group value="_qf_"|cat:$form.formName|cat:"_submit_group"}
34 {assign var=chart value="_qf_"|cat:$form.formName|cat:"_submit_chart"}
35 <table style="border:0;">
38 <table class="form-layout-compressed">
40 <td>{$form.$print.html} </td>
41 <td>{$form.$pdf.html} </td>
42 <td>{$form.$csv.html} </td>
44 <td> » <a href="{$instanceUrl}">{ts}Existing report(s) from this template{/ts}</a></td>
50 <table class="form-layout-compressed" align="right">
53 <td>{$form.charts.html|crmAddClass:big}</td>
54 <td align="right">{$form.$chart.html}</td>
60 {$form.groups.html}{$form.$group.html}
61 <script type="text/javascript">
64 $('#groups').val('').change(function() {
66 message: ts({/literal}'{ts escape='js' 1='<em>%1</em>'}Add all contacts to %1 group?{/ts}'{literal}, {1: $('option:selected', '#groups').text()})
69 'crmConfirm:yes': function() {
70 $('#groups').siblings(':submit').click();
72 'crmConfirm:no dialogclose': function() {
73 $('#groups').select2('val', '');
90 <script type="text/javascript">
92 // Disable print/pdf output of charts
93 $('select[name=charts]', 'form.crm-report-form').change(function() {
94 var viewType = $(this).val(),
95 flashChartType = '{/literal}{if $chartType}{$chartType}{else}{/if}{literal}';
96 $('#_qf_Summary_submit_pdf, #_qf_Summary_submit_print').prop('disabled', (viewType && flashChartType != viewType));
101 {/if} {* NO print section ends *}