Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
819d0d41 | 3 | | CiviCRM version 4.5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
819d0d41 | 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
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 | {if !$printOnly} {* NO print section starts *} | |
27 | {if $criteriaForm} | |
841cb24e CW |
28 | <div class="crm-report-criteria"> {* criteria section starts *} |
29 | <div id="mainTabContainer"> | |
30 | {*tab navigation bar*} | |
31 | <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"> | |
32 | {if $colGroups} | |
d7d921cb | 33 | <li class="ui-state-default ui-corner-all"> |
841cb24e CW |
34 | <a title="Columns" href="#report-tab-col-groups">{ts}Columns{/ts}</a> |
35 | </li> | |
36 | {/if} | |
37 | {if $groupByElements} | |
38 | <li class="ui-state-default ui-corner-all"> | |
39 | <a title="Group By" href="#report-tab-group-by-elements">{ts}Grouping{/ts}</a> | |
40 | </li> | |
41 | {/if} | |
42 | {if $orderByOptions} | |
43 | <li class="ui-state-default ui-corner-all"> | |
44 | <a title="Order By" href="#report-tab-order-by-elements">{ts}Sorting{/ts}</a> | |
45 | </li> | |
46 | {/if} | |
47 | {if $form.options.html} | |
48 | <li class="ui-state-default ui-corner-all"> | |
49 | <a title="Other Options" href="#report-tab-other-options">{ts}Options{/ts}</a> | |
50 | </li> | |
51 | {/if} | |
52 | {if $filters} | |
53 | <li class="ui-state-default ui-corner-all"> | |
54 | <a title="Filters" href="#report-tab-set-filters">{ts}Filters{/ts}</a> | |
55 | </li> | |
56 | {/if} | |
57 | {if $instanceForm OR $instanceFormError} | |
58 | <li id="tab_settings" class="ui-state-default ui-corner-all"> | |
59 | <a title="Settings" href="#report-tab-settings">{ts}Display{/ts}</a> | |
60 | </li> | |
61 | <li class="ui-state-default ui-corner-all"> | |
62 | <a title="Email" href="#report-tab-email">{ts}Email{/ts}</a> | |
63 | </li> | |
64 | <li class="ui-state-default ui-corner-all"> | |
65 | <a title="Other" href="#report-tab-other">{ts}Access{/ts}</a> | |
66 | </li> | |
67 | {/if} | |
68 | </ul> | |
69 | ||
70 | {*criteria*} | |
6a488035 | 71 | {include file="CRM/Report/Form/Criteria.tpl"} |
841cb24e CW |
72 | |
73 | {*settings*} | |
74 | {if $instanceForm OR $instanceFormError} | |
75 | {include file="CRM/Report/Form/Instance.tpl"} | |
6a488035 | 76 | {/if} |
841cb24e | 77 | </div> {* end mainTabContainer *} |
6a488035 | 78 | |
6a488035 TO |
79 | {assign var=save value="_qf_"|cat:$form.formName|cat:"_submit_save"} |
80 | {assign var=next value="_qf_"|cat:$form.formName|cat:"_submit_next"} | |
81 | <div class="crm-submit-buttons"> | |
841cb24e | 82 | {$form.buttons.html} |
6a488035 TO |
83 | {$form.$save.html} |
84 | {if $mode neq 'template' && $form.$next} | |
85 | {$form.$next.html} | |
86 | {/if} | |
87 | </div> | |
841cb24e | 88 | </div> {* criteria section ends *} |
6a488035 | 89 | {/if} |
841cb24e CW |
90 | |
91 | {literal} | |
92 | <script type="text/javascript"> | |
93 | CRM.$(function($) { | |
d7d921cb CW |
94 | $("#mainTabContainer").tabs({ |
95 | collapsible: true, | |
96 | active: {/literal}{if $rows}false{else}true{/if}{literal} | |
97 | }); | |
841cb24e CW |
98 | }); |
99 | ||
100 | </script> | |
101 | {/literal} | |
6a488035 | 102 | |
6a488035 | 103 | {/if} {* NO print section ends *} |