Lines 244-263
Link Here
|
244 |
</p> |
244 |
</p> |
245 |
[% END %] |
245 |
[% END %] |
246 |
|
246 |
|
247 |
<div id="tabs" class="toptabs"> |
247 |
[% WRAPPER tabs id= "tabs" %] |
248 |
<ul class="nav nav-tabs" role="tablist"> |
248 |
[% WRAPPER tabs_nav %] |
249 |
<li role="presentation" class="active"> |
249 |
[% WRAPPER tab_item tabname= "reports" bt_active= 1 %] <span>All</span> [% END %] |
250 |
<a href="#reports" aria-controls="reports" role="tab" data-toggle="tab">All</a> |
|
|
251 |
</li> |
252 |
[% FOREACH group IN groups_with_subgroups %] |
250 |
[% FOREACH group IN groups_with_subgroups %] |
253 |
<li role="presentation"> |
251 |
[% WRAPPER tab_item tabname= group.id %] <span>[% group.name | html %]</span> [% END %] |
254 |
<a id="[% group.id | html %]" href="#reports" aria-controls="reports" role="tab" data-toggle="tab">[% group.name | html %]</a> |
|
|
255 |
</li> |
256 |
[% END %] |
252 |
[% END %] |
257 |
</ul> |
253 |
[% END # /WRAPPER tabs_nav %] |
|
|
254 |
|
255 |
[% WRAPPER tab_panels %] |
256 |
[% WRAPPER tab_panel tabname="reports" bt_active= 1 %] |
258 |
|
257 |
|
259 |
<div class="tab-content"> |
|
|
260 |
<div id="reports" role="tabpanel" class="tab-pane active"> |
261 |
<div id="subgroup_filter_block"> |
258 |
<div id="subgroup_filter_block"> |
262 |
<label for="subgroup_filter">Subgroup:</label> |
259 |
<label for="subgroup_filter">Subgroup:</label> |
263 |
<select id="subgroup_filter"> |
260 |
<select id="subgroup_filter"> |
Lines 419-427
Link Here
|
419 |
</fieldset> |
416 |
</fieldset> |
420 |
[% END %] |
417 |
[% END %] |
421 |
</form> |
418 |
</form> |
422 |
</div> <!-- /#reports --> |
419 |
[% END # /tab_panel# %] |
423 |
</div> <!-- /.tab-content --> |
420 |
[% END # /WRAPPER tab_panels %] |
424 |
</div> |
421 |
[% END # /WRAPPER tabs %] |
|
|
422 |
|
423 |
|
424 |
|
425 |
|
425 |
[% ELSE # IF ( savedreports ) %] |
426 |
[% ELSE # IF ( savedreports ) %] |
426 |
<div class="dialog message"> |
427 |
<div class="dialog message"> |
427 |
[% IF (filter_set || filters.date || filters.author || filters.keyword) %] |
428 |
[% IF (filter_set || filters.date || filters.author || filters.keyword) %] |
Lines 2241-2248
Link Here
|
2241 |
} |
2242 |
} |
2242 |
|
2243 |
|
2243 |
function tabsInit( tab, rtable ){ |
2244 |
function tabsInit( tab, rtable ){ |
2244 |
var thisTab = tab; // ui.newTab ? ui.newTab : ui.tab; |
2245 |
var activeTab = tab.index(); |
2245 |
var activeTab = thisTab.index(); |
|
|
2246 |
localStorage.setItem("sql_reports_activetab", activeTab ); |
2246 |
localStorage.setItem("sql_reports_activetab", activeTab ); |
2247 |
|
2247 |
|
2248 |
$("#subgroup_filter option").each(function() { |
2248 |
$("#subgroup_filter option").each(function() { |
Lines 2255-2262
Link Here
|
2255 |
rtable.fnSetColumnVis(4, true); |
2255 |
rtable.fnSetColumnVis(4, true); |
2256 |
rtable.fnSetColumnVis(5, true); |
2256 |
rtable.fnSetColumnVis(5, true); |
2257 |
|
2257 |
|
2258 |
var g_id = $( tab ).children().attr('id'); |
2258 |
var g_id = tab.find("a").data("tabname"); |
2259 |
var g_name = $( tab ).children().text(); |
2259 |
var g_name = tab.find("a").text().trim(); |
|
|
2260 |
|
2260 |
if ( g_name == _("All") ) { |
2261 |
if ( g_name == _("All") ) { |
2261 |
g_id = ""; |
2262 |
g_id = ""; |
2262 |
g_name = ""; |
2263 |
g_name = ""; |
2263 |
- |
|
|