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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt (-239 / +148 lines)
Lines 23-36 Link Here
23
                    [% IF tables.$pagename.keys and tables.$pagename.keys.size > 1 %]
23
                    [% IF tables.$pagename.keys and tables.$pagename.keys.size > 1 %]
24
                        Jump to table:
24
                        Jump to table:
25
                        [% FOR tablename IN tables.$pagename.keys.sort %]
25
                        [% FOR tablename IN tables.$pagename.keys.sort %]
26
                            [% SET table_id = pagename _ '#' _ tablename %]
26
                            [% SET table_id = pagename _ '_' _ tablename %]
27
                            <a href="#[% table_id | uri %]">[% tablename | html %]</a>
27
                            <a href="#[% table_id | uri %]">[% tablename | html %]</a>
28
                            [% UNLESS loop.last %]<span class="separator"> | </span>[% END %]
28
                            [% UNLESS loop.last %]<span class="separator"> | </span>[% END %]
29
                        [% END %]
29
                        [% END %]
30
                    [% END %]
30
                    [% END %]
31
                    [% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %]
31
                    [% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %]
32
                        [% FOR tablename IN tables.$pagename.keys.sort %]
32
                        [% FOR tablename IN tables.$pagename.keys.sort %]
33
                            [% SET table_id = pagename _ '#' _ tablename %]
33
                            [% SET table_id = pagename _ '_' _ tablename %]
34
                            <div class="datatable_config" id="[% table_id | html %]">
34
                            <div class="datatable_config" id="[% table_id | html %]">
35
                                <input type="hidden" name="table_id" value="[% table_id| html %]" />
35
                                <input type="hidden" name="table_id" value="[% table_id| html %]" />
36
                                [% IF pagename == 'additem' AND tablename == 'itemst' %]
36
                                [% IF pagename == 'additem' AND tablename == 'itemst' %]
Lines 210-457 Link Here
210
                            [% INCLUDE 'messages.inc' %]
210
                            [% INCLUDE 'messages.inc' %]
211
211
212
                            <h1>Table settings</h1>
212
                            <h1>Table settings</h1>
213
                            <div class="panel-group" id="modules" role="tablist" aria-multiselectable="true">
213
                            [% WRAPPER accordion panelgroup_id="modules" %]
214
                                <div class="panel panel-default">
214
                                [% WRAPPER accordion_item %]
215
                                    <div class="panel-heading" role="tab" id="acquiHeading">
215
                                    [% WRAPPER accordion_heading panel_id="acqui" %]
216
                                        <h2 class="panel-title">
216
                                        <span>Acquisition</span>
217
                                            <a id="acquiToggle" class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#acqui" aria-expanded="false" aria-controls="collapseOne">
217
                                    [% END %]
218
                                                Acquisition
218
                                    [%  WRAPPER accordion_panel panel_id="acqui" %]
219
                                            </a>
219
                                        <h3>Acquisition tables</h3>
220
                                        </h2>
220
                                        [% PROCESS pagelist module=modules.acqui modulename="acqui" %]
221
                                    </div> <!-- /.panel-heading -->
221
                                    [% END %]
222
                                    <div id="acqui" class="panel-collapse collapse" role="tabpanel" aria-labelledby="acquiHeading">
222
                                [% END %]
223
                                        <div class="panel-body">
224
                                            <h3>Acquisition tables</h3>
225
                                            [% PROCESS pagelist module=modules.acqui modulename="acqui" %]
226
                                        </div> <!-- /.panel-body -->
227
                                    </div> <!-- /.panel-collapse -->
228
                                </div>
229
223
230
                                <div class="panel panel-default">
224
                                [% WRAPPER accordion_item %]
231
                                    <div class="panel-heading" role="tab" id="adminHeading">
225
                                    [% WRAPPER accordion_heading panel_id="admin" %]
232
                                        <h2 class="panel-title">
226
                                        <span>Administration</span>
233
                                            <a id="adminToggle" class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#admin" aria-expanded="false" aria-controls="collapseOne">
227
                                    [% END %]
234
                                                Administration
228
                                    [%  WRAPPER accordion_panel panel_id="admin" %]
235
                                            </a>
229
                                        <h3>Administration tables</h3>
236
                                        </h2>
230
                                        [% PROCESS pagelist module=modules.admin modulename="admin" %]
237
                                    </div> <!-- /.panel-heading -->
231
                                    [% END %]
238
                                    <div id="admin" class="panel-collapse collapse" role="tabpanel" aria-labelledby="adminHeading">
232
                                [% END %]
239
                                        <div class="panel-body">
240
                                            <h3>Administration tables</h3>
241
                                            [% PROCESS pagelist module=modules.admin modulename="admin" %]
242
                                        </div> <!-- /.panel-body -->
243
                                    </div> <!-- /.panel-collapse -->
244
                                </div>
245
233
246
                                <div class="panel panel-default">
234
                                [% WRAPPER accordion_item %]
247
                                    <div class="panel-heading" role="tab" id="authoritiesHeading">
235
                                    [% WRAPPER accordion_heading panel_id="authorities" %]
248
                                        <h2 class="panel-title">
236
                                        <span>Authorities</span>
249
                                            <a id="authoritiesToggle" class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#authorities" aria-expanded="false" aria-controls="collapseOne">
237
                                    [% END %]
250
                                                Authorities
238
                                    [%  WRAPPER accordion_panel panel_id="authorities" %]
251
                                            </a>
239
                                        <h3>Authorities tables</h3>
252
                                        </h2>
240
                                        [% PROCESS pagelist module=modules.authorities modulename="authorities" %]
253
                                    </div> <!-- /.panel-heading -->
241
                                    [% END %]
254
                                    <div id="authorities" class="panel-collapse collapse" role="tabpanel" aria-labelledby="authoritiesHeading">
242
                                [% END %]
255
                                        <div class="panel-body">
256
                                            <h3>Authorities tables</h3>
257
                                            [% PROCESS pagelist module=modules.authorities modulename="authorities" %]
258
                                        </div> <!-- /.panel-body -->
259
                                    </div> <!-- /.panel-collapse -->
260
                                </div>
261
243
262
                                <div class="panel panel-default">
244
                                [% WRAPPER accordion_item %]
263
                                    <div class="panel-heading" role="tab" id="catalogueHeading">
245
                                    [% WRAPPER accordion_heading panel_id="catalogue" %]
264
                                        <h2 class="panel-title">
246
                                        <span>Catalog</span>
265
                                            <a id="catalogueToggle" class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#catalogue" aria-expanded="false" aria-controls="collapseOne">
247
                                    [% END %]
266
                                                Catalog
248
                                    [%  WRAPPER accordion_panel panel_id="catalogue" %]
267
                                            </a>
249
                                        <h3>Catalogue tables</h3>
268
                                        </h2>
250
                                        [% PROCESS pagelist module=modules.catalogue modulename="catalogue" %]
269
                                    </div> <!-- /.panel-heading -->
251
                                    [% END %]
270
                                    <div id="catalogue" class="panel-collapse collapse" role="tabpanel" aria-labelledby="catalogueHeading">
252
                                [% END %]
271
                                        <div class="panel-body">
272
                                            <h3>Catalogue tables</h3>
273
                                            [% PROCESS pagelist module=modules.catalogue modulename="catalogue" %]
274
                                        </div> <!-- /.panel-body -->
275
                                    </div> <!-- /.panel-collapse -->
276
                                </div>
277
253
278
                                <div class="panel panel-default">
254
                                [% WRAPPER accordion_item %]
279
                                    <div class="panel-heading" role="tab" id="cataloguingHeading">
255
                                    [% WRAPPER accordion_heading panel_id="cataloguing" %]
280
                                        <h2 class="panel-title">
256
                                        <span>Cataloging</span>
281
                                            <a id="cataloguingToggle" class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#cataloguing" aria-expanded="false" aria-controls="collapseOne">
257
                                    [% END %]
282
                                                Cataloging
258
                                    [%  WRAPPER accordion_panel panel_id="cataloguing" %]
283
                                            </a>
259
                                        <h3>Cataloguing tables</h3>
284
                                        </h2>
260
                                        [% PROCESS pagelist module=modules.cataloguing modulename="cataloguing" %]
285
                                    </div> <!-- /.panel-heading -->
261
                                    [% END %]
286
                                    <div id="cataloguing" class="panel-collapse collapse" role="tabpanel" aria-labelledby="cataloguingHeading">
262
                                [% END %]
287
                                        <div class="panel-body">
288
                                            <h3>Cataloguing tables</h3>
289
                                            [% PROCESS pagelist module=modules.cataloguing modulename="cataloguing" %]
290
                                        </div> <!-- /.panel-body -->
291
                                    </div> <!-- /.panel-collapse -->
292
                                </div>
293
263
294
                                <div class="panel panel-default">
264
                                [% WRAPPER accordion_item %]
295
                                    <div class="panel-heading" role="tab" id="circHeading">
265
                                    [% WRAPPER accordion_heading panel_id="circ" %]
296
                                        <h2 class="panel-title">
266
                                        <span>Circulation</span>
297
                                            <a id="circToggle" class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#circ" aria-expanded="false" aria-controls="collapseOne">
267
                                    [% END %]
298
                                                Circulation
268
                                    [%  WRAPPER accordion_panel panel_id="circ" %]
299
                                            </a>
269
                                        <h3>Circulation tables</h3>
300
                                        </h2>
270
                                        [% PROCESS pagelist module=modules.circ modulename="circ" %]
301
                                    </div> <!-- /.panel-heading -->
271
                                    [% END %]
302
                                    <div id="circ" class="panel-collapse collapse" role="tabpanel" aria-labelledby="circHeading">
272
                                [% END %]
303
                                        <div class="panel-body">
304
                                            <h3>Circulation tables</h3>
305
                                            [% PROCESS pagelist module=modules.circ modulename="circ" %]
306
                                        </div> <!-- /.panel-body -->
307
                                    </div> <!-- /.panel-collapse -->
308
                                </div>
309
273
310
                                <div class="panel panel-default">
274
                                [% WRAPPER accordion_item %]
311
                                    <div class="panel-heading" role="tab" id="coursereservesHeading">
275
                                    [% WRAPPER accordion_heading panel_id="coursereserves" %]
312
                                        <h2 class="panel-title">
276
                                        Course <span>reserves</span>
313
                                            <a id="coursereservesToggle" class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#coursereserves" aria-expanded="false" aria-controls="collapseOne">
277
                                    [% END %]
314
                                                Course reserves
278
                                    [%  WRAPPER accordion_panel panel_id="coursereserves" %]
315
                                            </a>
279
                                        <h3>Course reserves tables</h3>
316
                                        </h2>
280
                                        [% PROCESS pagelist module=modules.coursereserves modulename="coursereserves" %]
317
                                    </div> <!-- /.panel-heading -->
281
                                    [% END %]
318
                                    <div id="coursereserves" class="panel-collapse collapse" role="tabpanel" aria-labelledby="coursereservesHeading">
282
                                [% END %]
319
                                        <div class="panel-body">
320
                                            <h3>Course reserves tables</h3>
321
                                            [% PROCESS pagelist module=modules.coursereserves modulename="coursereserves" %]
322
                                        </div> <!-- /.panel-body -->
323
                                    </div> <!-- /.panel-collapse -->
324
                                </div>
325
283
326
                                <div class="panel panel-default">
284
                                [% WRAPPER accordion_item %]
327
                                    <div class="panel-heading" role="tab" id="ermHeading">
285
                                    [% WRAPPER accordion_heading panel_id="erm" %]
328
                                        <h2 class="panel-title">
286
                                            E-resource <span>management</span>
329
                                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#erm" aria-expanded="false" aria-controls="collapseOne">
287
                                    [% END %]
330
                                                 E-resource management
288
                                    [%  WRAPPER accordion_panel panel_id="erm" %]
331
                                            </a>
289
                                        <h3>E-resource management tables</h3>
332
                                        </h2>
290
                                        [% PROCESS pagelist module=modules.erm modulename="erm" %]
333
                                    </div> <!-- /.panel-heading -->
291
                                    [% END %]
334
                                    <div id="erm" class="panel-collapse collapse" role="tabpanel" aria-labelledby="ermHeading">
292
                                [% END %]
335
                                        <div class="panel-body">
336
                                            <h3>E-resource management tables</h3>
337
                                            [% PROCESS pagelist module=modules.erm modulename="erm" %]
338
                                        </div> <!-- /.panel-body -->
339
                                    </div> <!-- /.panel-collapse -->
340
                                </div>
341
293
342
                                <div class="panel panel-default">
294
                                [% WRAPPER accordion_item %]
343
                                    <div class="panel-heading" role="tab" id="illrequestsHeading">
295
                                    [% WRAPPER accordion_heading panel_id="illrequests" %]
344
                                        <h2 class="panel-title">
296
                                        Interlibrary <span>loans</span>
345
                                            <a id="illrequestsToggle" class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#illrequests" aria-expanded="false" aria-controls="collapseOne">
297
                                    [% END %]
346
                                                Interlibrary loans
298
                                    [%  WRAPPER accordion_panel panel_id="illrequests" %]
347
                                            </a>
299
                                        <h3>Interlibrary loans tables</h3>
348
                                        </h2>
300
                                        [% PROCESS pagelist module=modules.illrequests modulename="illrequests" %]
349
                                    </div> <!-- /.panel-heading -->
301
                                    [% END %]
350
                                    <div id="illrequests" class="panel-collapse collapse" role="tabpanel" aria-labelledby="illrequestsHeading">
302
                                [% END %]
351
                                        <div class="panel-body">
352
                                            <h3>Interlibrary loans tables</h3>
353
                                            [% PROCESS pagelist module=modules.illrequests modulename="illrequests" %]
354
                                        </div> <!-- /.panel-body -->
355
                                    </div> <!-- /.panel-collapse -->
356
                                </div>
357
303
358
                                <div class="panel panel-default">
304
                                [% WRAPPER accordion_item %]
359
                                    <div class="panel-heading" role="tab" id="membersHeading">
305
                                    [% WRAPPER accordion_heading panel_id="members" %]
360
                                        <h2 class="panel-title">
306
                                        <span>Patrons</span>
361
                                            <a id="membersToggle" class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#members" aria-expanded="false" aria-controls="collapseOne">
307
                                    [% END %]
362
                                                Patrons
308
                                    [%  WRAPPER accordion_panel panel_id="members" %]
363
                                            </a>
309
                                        <h3>Patrons tables</h3>
364
                                        </h2>
310
                                        [% PROCESS pagelist module=modules.members modulename="members" %]
365
                                    </div> <!-- /.panel-heading -->
311
                                    [% END %]
366
                                    <div id="members" class="panel-collapse collapse" role="tabpanel" aria-labelledby="membersHeading">
312
                                [% END %]
367
                                        <div class="panel-body">
368
                                            <h3>Patrons tables</h3>
369
                                            [% PROCESS pagelist module=modules.members modulename="members" %]
370
                                        </div> <!-- /.panel-body -->
371
                                    </div> <!-- /.panel-collapse -->
372
                                </div>
373
313
374
                                <div class="panel panel-default">
314
                                [% WRAPPER accordion_item %]
375
                                    <div class="panel-heading" role="tab" id="posHeading">
315
                                    [% WRAPPER accordion_heading panel_id="pos" %]
376
                                        <h2 class="panel-title">
316
                                        Point of <span>sale</span>
377
                                            <a id="posToggle" class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#pos" aria-expanded="false" aria-controls="collapseOne">
317
                                    [% END %]
378
                                                Point of sale
318
                                    [%  WRAPPER accordion_panel panel_id="pos" %]
379
                                            </a>
319
                                        <h3>Point of sale tables</h3>
380
                                        </h2>
320
                                        [% PROCESS pagelist module=modules.pos modulename="pos" %]
381
                                    </div> <!-- /.panel-heading -->
321
                                    [% END %]
382
                                    <div id="pos" class="panel-collapse collapse" role="tabpanel" aria-labelledby="posHeading">
322
                                [% END %]
383
                                        <div class="panel-body">
384
                                            <h3>Point of sale tables</h3>
385
                                            [% PROCESS pagelist module=modules.pos modulename="pos" %]
386
                                        </div> <!-- /.panel-body -->
387
                                    </div> <!-- /.panel-collapse -->
388
                                </div>
389
323
390
                                <div class="panel panel-default">
324
                                [% WRAPPER accordion_item %]
391
                                    <div class="panel-heading" role="tab" id="toolsHeading">
325
                                    [% WRAPPER accordion_heading panel_id="tools" %]
392
                                        <h2 class="panel-title">
326
                                        <span>Tools</span>
393
                                            <a id="toolsToggle" class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#tools" aria-expanded="false" aria-controls="collapseOne">
327
                                    [% END %]
394
                                                Tools
328
                                    [%  WRAPPER accordion_panel panel_id="tools" %]
395
                                            </a>
329
                                        <h3>Tools tables</h3>
396
                                        </h2>
330
                                        [% PROCESS pagelist module=modules.tools modulename="tools" %]
397
                                    </div> <!-- /.panel-heading -->
331
                                    [% END %]
398
                                    <div id="tools" class="panel-collapse collapse" role="tabpanel" aria-labelledby="toolsHeading">
332
                                [% END %]
399
                                        <div class="panel-body">
400
                                            <h3>Tools tables</h3>
401
                                            [% PROCESS pagelist module=modules.tools modulename="tools" %]
402
                                        </div> <!-- /.panel-body -->
403
                                    </div> <!-- /.panel-collapse -->
404
                                </div>
405
333
406
                                <div class="panel panel-default">
334
                                [% WRAPPER accordion_item %]
407
                                    <div class="panel-heading" role="tab" id="opacHeading">
335
                                    [% WRAPPER accordion_heading panel_id="opac" %]
408
                                        <h2 class="panel-title">
336
                                        <span>OPAC</span>
409
                                            <a id="opacToggle" class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#opac" aria-expanded="false" aria-controls="collapseOne">
337
                                    [% END %]
410
                                                OPAC
338
                                    [%  WRAPPER accordion_panel panel_id="opac" %]
411
                                            </a>
339
                                        <h3>OPAC tables</h3>
412
                                        </h2>
340
                                        [% PROCESS pagelist module=modules.opac modulename="opac" %]
413
                                    </div> <!-- /.panel-heading -->
341
                                    [% END %]
414
                                    <div id="opac" class="panel-collapse collapse" role="tabpanel" aria-labelledby="opacHeading">
342
                                [% END %]
415
                                        <div class="panel-body">
416
                                            <h3>OPAC tables</h3>
417
                                            [% PROCESS pagelist module=modules.opac modulename="opac" %]
418
                                        </div> <!-- /.panel-body -->
419
                                    </div> <!-- /.panel-collapse -->
420
                                </div>
421
343
422
                                <div class="panel panel-default">
344
                                [% WRAPPER accordion_item %]
423
                                    <div class="panel-heading" role="tab" id="reportsHeading">
345
                                    [% WRAPPER accordion_heading panel_id="reports" %]
424
                                        <h2 class="panel-title">
346
                                        <span>Reports</span>
425
                                            <a id="reportsToggle" class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#reports" aria-expanded="false" aria-controls="collapseOne">
347
                                    [% END %]
426
                                                Reports
348
                                    [%  WRAPPER accordion_panel panel_id="reports" %]
427
                                            </a>
349
                                        <h3>Reports tables</h3>
428
                                        </h2>
350
                                        [% PROCESS pagelist module=modules.reports modulename="reports" %]
429
                                    </div> <!-- /.panel-heading -->
351
                                    [% END %]
430
                                    <div id="reports" class="panel-collapse collapse" role="tabpanel" aria-labelledby="reportsHeading">
352
                                [% END %]
431
                                        <div class="panel-body">
432
                                            <h3>Reports tables</h3>
433
                                            [% PROCESS pagelist module=modules.reports modulename="reports" %]
434
                                        </div> <!-- /.panel-body -->
435
                                    </div> <!-- /.panel-collapse -->
436
                                </div>
437
353
438
                                <div class="panel panel-default">
354
                                [% WRAPPER accordion_item %]
439
                                    <div class="panel-heading" role="tab" id="serialsHeading">
355
                                    [% WRAPPER accordion_heading panel_id="serials" %]
440
                                        <h2 class="panel-title">
356
                                        <span>Serials</span>
441
                                            <a id="serialsToggle" class="collapsed" role="button" data-toggle="collapse" data-parent="#modules" href="#serials" aria-expanded="false" aria-controls="collapseOne">
357
                                    [% END %]
442
                                                Serials
358
                                    [%  WRAPPER accordion_panel panel_id="serials" %]
443
                                            </a>
359
                                        <h3>Serials tables</h3>
444
                                        </h2>
360
                                        [% PROCESS pagelist module=modules.serials modulename="serials" %]
445
                                    </div> <!-- /.panel-heading -->
361
                                    [% END %]
446
                                    <div id="serials" class="panel-collapse collapse" role="tabpanel" aria-labelledby="serialsHeading">
362
                                [% END %]
447
                                        <div class="panel-body">
363
                            [% END # /WRAPPER accordion %]
448
                                            <h3>Serials tables</h3>
449
                                            [% PROCESS pagelist module=modules.serials modulename="serials" %]
450
                                        </div> <!-- /.panel-body -->
451
                                    </div> <!-- /.panel-collapse -->
452
                                </div>
453
364
454
                            </div>
455
                        </main>
365
                        </main>
456
                </div> <!-- /.col-sm-10.col-sm-push-2 -->
366
                </div> <!-- /.col-sm-10.col-sm-push-2 -->
457
367
Lines 470-484 Link Here
470
            $(document).ready( function() {
380
            $(document).ready( function() {
471
                $("#[% panel | uri %]Toggle").click();
381
                $("#[% panel | uri %]Toggle").click();
472
                [%- IF page.defined -%]
382
                [%- IF page.defined -%]
473
                $("#[% panel | uri %]").on('shown.bs.collapse', function () {
383
                    $("#[% panel | uri %]_panel").on('shown.bs.collapse', function () {
474
                    $('html, body').animate({
384
                        $('html, body').animate({
475
                        [%- IF table.defined -%]
385
                            [%- IF table.defined -%]
476
                        scrollTop: ($("#[% page | uri %]\\#[% table | uri %]").offset().top)
386
                                scrollTop: ($("#[% page | uri %]_[% table | uri %]").offset().top)
477
                        [%- ELSE -%]
387
                            [%- ELSE -%]
478
                        scrollTop: ($("#[% page | uri %]").offset().top)
388
                                scrollTop: ($("#[% page | uri %]").offset().top)
479
                        [%- END -%]
389
                            [%- END -%]
480
                    }, 500);
390
                        }, 500);
481
                });
391
                    });
482
                [%- END -%]
392
                [%- END -%]
483
            });
393
            });
484
        </script>
394
        </script>
485
- 

Return to bug 35883