version fixes
[civicrm-core.git] / templates / CRM / Report / Form / Fields.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
2c4c49ca 3 | CiviCRM version 4.7 |
6a488035 4 +--------------------------------------------------------------------+
e7112fa7 5 | Copyright CiviCRM LLC (c) 2004-2015 |
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>
0b62c1ab 32 {foreach from=$tabs item='tab'}
f1c9651b 33 <li class="ui-corner-all">
0b62c1ab 34 <a title="{$tab.title}" href="#report-tab-{$tab.div_label}">{$tab.title}</a>
841cb24e 35 </li>
0b62c1ab 36 {/foreach}
841cb24e 37 {if $instanceForm OR $instanceFormError}
f1c9651b 38 <li id="tab_settings" class="ui-corner-all">
70b1b945 39 <a title="{ts}Title and Format{/ts}" href="#report-tab-format">{ts}Title and Format{/ts}</a>
841cb24e 40 </li>
f1c9651b 41 <li class="ui-corner-all">
db43134f 42 <a title="{ts}Email Delivery{/ts}" href="#report-tab-email">{ts}Email Delivery{/ts}</a>
841cb24e 43 </li>
f1c9651b 44 <li class="ui-corner-all">
70b1b945 45 <a title="{ts}Access{/ts}" href="#report-tab-access">{ts}Access{/ts}</a>
841cb24e
CW
46 </li>
47 {/if}
48 </ul>
49
50 {*criteria*}
db43134f 51 {include file="CRM/Report/Form/Criteria.tpl"}
841cb24e
CW
52
53 {*settings*}
54 {if $instanceForm OR $instanceFormError}
cd732070 55 {include file="CRM/Report/Form/Tabs/Instance.tpl"}
db43134f 56 {/if}
841cb24e 57 </div> {* end mainTabContainer *}
6a488035 58
b69e578b
CW
59 {assign var=save value="_qf_"|cat:$form.formName|cat:"_submit_save"}
60 {assign var=next value="_qf_"|cat:$form.formName|cat:"_submit_next"}
61 <div class="crm-submit-buttons">
62 {$form.buttons.html}
63 {if $instanceForm}
64 {$form.$save.html}
65 {/if}
66 {if $mode neq 'template' && $form.$next}
67 {$form.$next.html}
68 {/if}
69 </div>
70 </div> {* criteria section ends *}
71 {/if}
841cb24e
CW
72
73{literal}
b69e578b
CW
74 <script type="text/javascript">
75 CRM.$(function($) {
76 var tabSettings = {
77 collapsible: true,
78 active: {/literal}{if $rows}false{else}0{/if}{literal}
79 };
80 // If a tab contains an error, open it
81 if ($('.civireport-criteria .crm-error', '#mainTabContainer').length) {
82 tabSettings.active = $('.civireport-criteria').index($('.civireport-criteria:has(".crm-error")')[0]);
83 }
84 $("#mainTabContainer").tabs(tabSettings);
85 });
841cb24e 86
b69e578b 87 </script>
841cb24e 88{/literal}
6a488035 89
6a488035 90{/if} {* NO print section ends *}