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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc (+60 lines)
Lines 400-402 Link Here
400
        [% content| $raw %]
400
        [% content| $raw %]
401
    </div>
401
    </div>
402
[% END %]
402
[% END %]
403
404
[%# BOOTSTRAP BREADCRUMBS WRAPPER USAGE
405
    [ WRAPPER breadcrumbs ]
406
        [ Home breadcrumb automatically included ]
407
        [ WRAPPER breadcrumb_item ]
408
            <a href="/cgi-bin/koha/module/module-home.pl"> Module </a>
409
        [ END ]
410
411
        [ IF op == 'add_form' ]
412
            [ WRAPPER breadcrumb_item ]
413
                <a href="/cgi-bin/koha/module/page.pl"> Module page </a>
414
            [ END ]
415
            [ WRAPPER breadcrumb_item active = 1 ]
416
                Add form
417
            [ END ]
418
419
        [ ELSIF op == 'delete_confirm' ]
420
            [ WRAPPER breadcrumb_item ]
421
                <a href="/cgi-bin/koha/module/page.pl"> Module page </a>
422
            [ END ]
423
            [ WRAPPER breadcrumb_item active = 1 ]
424
                Confirm deletion
425
            [ END ]
426
427
        [ ELSE ]
428
            [ WRAPPER breadcrumb_item active = 1 ]
429
                Module page
430
            [ END ]
431
        [ END #/IF op = add_form ]
432
433
    [ END #/ WRAPPER breadcrumbs ]
434
 %]
435
436
[%# Used to build breadcrumb navigation nav %]
437
[% BLOCK breadcrumbs %]
438
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
439
        <ol>
440
            [%# Include the Home link every time %]
441
            [% WRAPPER breadcrumb_item %]
442
                <a href="/cgi-bin/koha/mainpage.pl">Home</a>
443
            [% END %]
444
            [% content | $raw %]
445
        </ol>
446
    </nav>
447
[% END %]
448
449
[%# Used to build individual breadcrumb items in the breadcrumb nav %]
450
[% BLOCK breadcrumb_item %]
451
    [% IF ( active ) %]
452
        <li>
453
            <a href="#" aria-current="page">
454
                [% content | $raw %]
455
            </a>
456
        </li>
457
    [% ELSE %]
458
        <li>
459
            [% content | $raw %]
460
        </li>
461
    [% END %]
462
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt (-35 / +24 lines)
Lines 24-72 Link Here
24
[% END %]
24
[% END %]
25
25
26
[% WRAPPER 'sub-header.inc' %]
26
[% WRAPPER 'sub-header.inc' %]
27
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
27
    [% WRAPPER breadcrumbs %]
28
    <ol>
28
        [% WRAPPER breadcrumb_item %]
29
        <li>
30
            <a href="/cgi-bin/koha/mainpage.pl">Home</a>
31
        </li>
32
        <li>
33
            <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
29
            <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
34
        </li>
30
        [% END %]
35
31
36
        [% IF op == 'add_form' %]
32
        [% IF op == 'add_form' %]
37
            <li>
33
            [% WRAPPER breadcrumb_item %]
38
                <a href="/cgi-bin/koha/admin/cities.pl">Cities</a>
34
                <a href="/cgi-bin/koha/admin/cities.pl">Cities</a>
39
            </li>
35
            [% END %]
40
            <li>
36
            [% WRAPPER breadcrumb_item active = 1 %]
41
                <a href="#" aria-current="page">
37
                [% IF city.cityid %]
42
                    [% IF city.cityid %]
38
                    <span>Modify city</span>
43
                        <span>Modify city</span>
39
                [% ELSE %]
44
                    [% ELSE %]
40
                    <span>New city</span>
45
                        <span>New city</span>
41
                [% END %]
46
                    [% END %]
42
            [% END %]
47
                </a>
48
            </li>
49
43
50
        [% ELSIF op == 'delete_confirm' %]
44
        [% ELSIF op == 'delete_confirm' %]
51
            <li>
45
            [% WRAPPER breadcrumb_item %]
52
                <a href="/cgi-bin/koha/admin/cities.pl">Cities</a>
46
                <a href="/cgi-bin/koha/admin/cities.pl">Cities</a>
53
            </li>
47
            [% END %]
54
            <li>
48
            [% WRAPPER breadcrumb_item active = 1 %]
55
                <a href="#" aria-current="page">
49
                Confirm deletion of city
56
                    Confirm deletion of city
50
            [% END %]
57
                </a>
58
            </li>
59
51
60
        [% ELSE %]
52
        [% ELSE %]
61
            <li>
53
            [% WRAPPER breadcrumb_item active = 1 %]
62
                <a href="#" aria-current="page">
54
                Cities
63
                    Cities
55
            [% END %]
64
                </a>
56
        [% END #/IF op = add_form %]
65
            </li>
57
66
        [% END %]
58
    [% END #/ WRAPPER breadcrumbs %]
67
    </ol>
59
[% END #/ WRAPPER sub-header.inc %]
68
</nav>
69
[% END %]
70
60
71
<div class="main container-fluid">
61
<div class="main container-fluid">
72
    <div class="row">
62
    <div class="row">
73
- 

Return to bug 32507