Merge pull request #15338 from totten/master-poc-postcommit
[civicrm-core.git] / templates / CRM / Report / Form.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 +--------------------------------------------------------------------+
9 *}
10 {* this div is being used to apply special css *}
11 {if $section eq 1}
12 <div class="crm-block crm-content-block crm-report-layoutGraph-form-block">
13 {*include the graph*}
14 {include file="CRM/Report/Form/Layout/Graph.tpl"}
15 </div>
16 {elseif $section eq 2}
17 <div class="crm-block crm-content-block crm-report-layoutTable-form-block">
18 {*include the table layout*}
19 {include file="CRM/Report/Form/Layout/Table.tpl"}
20 </div>
21 {else}
22 {if $criteriaForm OR $instanceForm OR $instanceFormError}
23 <div class="crm-block crm-form-block crm-report-field-form-block">
24 {include file="CRM/Report/Form/Fields.tpl"}
25 </div>
26 {/if}
27
28 <div class="crm-block crm-content-block crm-report-form-block">
29 {*include actions*}
30 {include file="CRM/Report/Form/Actions.tpl"}
31
32 {*Statistics at the Top of the page*}
33 {include file="CRM/Report/Form/Statistics.tpl" top=true}
34
35 {*include the graph*}
36 {include file="CRM/Report/Form/Layout/Graph.tpl"}
37
38 {*include the table layout*}
39 {include file="CRM/Report/Form/Layout/Table.tpl"}
40 <br />
41 {*Statistics at the bottom of the page*}
42 {include file="CRM/Report/Form/Statistics.tpl" bottom=true}
43
44 {include file="CRM/Report/Form/ErrorMessage.tpl"}
45 </div>
46 {/if}
47 {if $outputMode == 'print'}
48 <script type="text/javascript">
49 window.print();
50 </script>
51 {/if}