View | Details | Raw Unified | Return to bug 33333
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc (-1 / +1 lines)
Lines 394-400 Link Here
394
    [% ELSE %]
394
    [% ELSE %]
395
        <li role="presentation">
395
        <li role="presentation">
396
    [% END %]
396
    [% END %]
397
        <a href="#[% tabname | uri %]_panel" aria-controls="[% tabname | uri %]_panel" role="tab" data-toggle="tab">
397
        <a href="#[% tabname | uri %]_panel" data-tabname="[% tabname | uri %]" aria-controls="[% tabname | uri %]_panel" role="tab" data-toggle="tab">
398
            [% content | $raw %]
398
            [% content | $raw %]
399
        </a>
399
        </a>
400
    </li>
400
    </li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-19 / +19 lines)
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
- 

Return to bug 33333