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

Return to bug 35883