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 *} | |
b69e578b CW |
27 | {if $criteriaForm} |
28 | <div class="crm-report-criteria"> {* criteria section starts *} | |
841cb24e CW |
29 | <div id="mainTabContainer"> |
30 | {*tab navigation bar*} | |
f1c9651b | 31 | <ul> |
841cb24e | 32 | {if $colGroups} |
f1c9651b | 33 | <li class="ui-corner-all"> |
db43134f | 34 | <a title="{ts}Columns{/ts}" href="#report-tab-col-groups">{ts}Columns{/ts}</a> |
841cb24e CW |
35 | </li> |
36 | {/if} | |
37 | {if $groupByElements} | |
f1c9651b | 38 | <li class="ui-corner-all"> |
db43134f | 39 | <a title="{ts}Grouping{/ts}" href="#report-tab-group-by-elements">{ts}Grouping{/ts}</a> |
841cb24e CW |
40 | </li> |
41 | {/if} | |
42 | {if $orderByOptions} | |
f1c9651b | 43 | <li class="ui-corner-all"> |
db43134f | 44 | <a title="{ts}Sorting{/ts}" href="#report-tab-order-by-elements">{ts}Sorting{/ts}</a> |
841cb24e CW |
45 | </li> |
46 | {/if} | |
70b1b945 | 47 | {if $otherOptions} |
f1c9651b | 48 | <li class="ui-corner-all"> |
70b1b945 | 49 | <a title="{ts}Display Options{/ts}" href="#report-tab-other-options">{ts}Display{/ts}</a> |
841cb24e CW |
50 | </li> |
51 | {/if} | |
52 | {if $filters} | |
f1c9651b | 53 | <li class="ui-corner-all"> |
db43134f | 54 | <a title="{ts}Filters{/ts}" href="#report-tab-set-filters">{ts}Filters{/ts}</a> |
841cb24e CW |
55 | </li> |
56 | {/if} | |
57 | {if $instanceForm OR $instanceFormError} | |
f1c9651b | 58 | <li id="tab_settings" class="ui-corner-all"> |
70b1b945 | 59 | <a title="{ts}Title and Format{/ts}" href="#report-tab-format">{ts}Title and Format{/ts}</a> |
841cb24e | 60 | </li> |
f1c9651b | 61 | <li class="ui-corner-all"> |
db43134f | 62 | <a title="{ts}Email Delivery{/ts}" href="#report-tab-email">{ts}Email Delivery{/ts}</a> |
841cb24e | 63 | </li> |
f1c9651b | 64 | <li class="ui-corner-all"> |
70b1b945 | 65 | <a title="{ts}Access{/ts}" href="#report-tab-access">{ts}Access{/ts}</a> |
841cb24e CW |
66 | </li> |
67 | {/if} | |
68 | </ul> | |
69 | ||
70 | {*criteria*} | |
db43134f | 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"} | |
db43134f | 76 | {/if} |
841cb24e | 77 | </div> {* end mainTabContainer *} |
6a488035 | 78 | |
b69e578b CW |
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"> | |
82 | {$form.buttons.html} | |
83 | {if $instanceForm} | |
84 | {$form.$save.html} | |
85 | {/if} | |
86 | {if $mode neq 'template' && $form.$next} | |
87 | {$form.$next.html} | |
88 | {/if} | |
89 | </div> | |
90 | </div> {* criteria section ends *} | |
91 | {/if} | |
841cb24e CW |
92 | |
93 | {literal} | |
b69e578b CW |
94 | <script type="text/javascript"> |
95 | CRM.$(function($) { | |
96 | var tabSettings = { | |
97 | collapsible: true, | |
98 | active: {/literal}{if $rows}false{else}0{/if}{literal} | |
99 | }; | |
100 | // If a tab contains an error, open it | |
101 | if ($('.civireport-criteria .crm-error', '#mainTabContainer').length) { | |
102 | tabSettings.active = $('.civireport-criteria').index($('.civireport-criteria:has(".crm-error")')[0]); | |
103 | } | |
104 | $("#mainTabContainer").tabs(tabSettings); | |
105 | }); | |
841cb24e | 106 | |
b69e578b | 107 | </script> |
841cb24e | 108 | {/literal} |
6a488035 | 109 | |
6a488035 | 110 | {/if} {* NO print section ends *} |