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 {if !$printOnly} {* NO print section starts *}
12 {* build the print pdf buttons *}
13 <div class="crm-tasks">
14 {assign var=group value="_qf_"|cat:$form.formName|cat:"_submit_group"}
15 {assign var=chart value="_qf_"|cat:$form.formName|cat:"_submit_chart"}
16 <table style="border:0;">
19 <table class="form-layout-compressed">
21 {include file="CRM/common/tasks.tpl" location="botton"}
23 <td> <i class="crm-i fa-chevron-right"></i> <a href="{$instanceUrl}">{ts}Existing report(s) from this template{/ts}</a></td>
29 <table class="form-layout-compressed" align="right">
32 <td>{$form.charts.html|crmAddClass:big}</td>
33 <td align="right">{$form.$chart.html}</td>
39 {$form.groups.html}{$form.$group.html}
40 <script type="text/javascript">
43 $('#groups').val('').change(function() {
45 message: ts({/literal}'{ts escape='js' 1='<em>%1</em>'}Add all contacts to %1 group?{/ts}'{literal}, {1: $('option:selected', '#groups').text()})
48 'crmConfirm:yes': function() {
49 $('#groups').siblings(':submit').click();
51 'crmConfirm:no dialogclose': function() {
52 $('#groups').select2('val', '');
69 <script type="text/javascript">
71 // Disable print/pdf output of charts
72 $('select[name=charts]', 'form.crm-report-form').change(function() {
73 var viewType = $(this).val(),
74 flashChartType = '{/literal}{if $chartType}{$chartType}{else}{/if}{literal}';
75 $('#_qf_Summary_submit_pdf, #_qf_Summary_submit_print').prop('disabled', (viewType && flashChartType != viewType));
80 {/if} {* NO print section ends *}