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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-4 / +8 lines)
Lines 3-8 Link Here
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE KohaDates %]
4
[% USE KohaDates %]
5
[% USE Branches %]
5
[% USE Branches %]
6
[% USE HtmlScrubber %]
6
[% PROCESS 'i18n.inc' %]
7
[% PROCESS 'i18n.inc' %]
7
[% SET footerjs = 1 %]
8
[% SET footerjs = 1 %]
8
[% INCLUDE 'doc-head-open.inc' %]
9
[% INCLUDE 'doc-head-open.inc' %]
Lines 351-357 Link Here
351
            ><button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"> </button>
352
            ><button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"> </button>
352
            <ul class="dropdown-menu">
353
            <ul class="dropdown-menu">
353
                <li>
354
                <li>
354
                    [% IF ( wysiwy || category == 'record_display' ) %]
355
                    [% IF ( wysiwyg || category == 'record_display' ) %]
355
                        <a class="dropdown-item" href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&category=[% category | uri %]&editmode=text">New entry using text editor</a>
356
                        <a class="dropdown-item" href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&category=[% category | uri %]&editmode=text">New entry using text editor</a>
356
                    [% ELSE %]
357
                    [% ELSE %]
357
                        <a class="dropdown-item" href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&category=[% category | uri %]&editmode=wysiwyg">New entry using WYSIWYG editor</a>
358
                        <a class="dropdown-item" href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&category=[% category | uri %]&editmode=wysiwyg">New entry using WYSIWYG editor</a>
Lines 468-474 Link Here
468
                                                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
469
                                                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
469
                                                </div>
470
                                                </div>
470
                                                <div class="modal-body">
471
                                                <div class="modal-body">
471
                                                    <template shadowrootmode="open"> [% default_localization.content | $raw %] </template>
472
                                                    [% IF ( category == 'record_display' ) %]
473
                                                        <template shadowrootmode="open"> [% default_localization.content | scrub_html type => 'record_display' | $raw %] </template>
474
                                                    [% ELSE %]
475
                                                        <template shadowrootmode="open"> [% default_localization.content | $raw %] </template>
476
                                                    [% END %]
472
                                                </div>
477
                                                </div>
473
                                                <div class="modal-footer">
478
                                                <div class="modal-footer">
474
                                                    <button type="button" class="btn btn-default" data-bs-dismiss="modal">Close</button>
479
                                                    <button type="button" class="btn btn-default" data-bs-dismiss="modal">Close</button>
Lines 483-489 Link Here
483
                                        ><button class="btn btn-default btn-xs dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"> </button>
488
                                        ><button class="btn btn-default btn-xs dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"> </button>
484
                                        <ul class="dropdown-menu">
489
                                        <ul class="dropdown-menu">
485
                                            <li>
490
                                            <li>
486
                                                [% IF ( wysiwyg ) %]
491
                                                [% IF ( wysiwyg || category == 'record_display' ) %]
487
                                                    <a class="dropdown-item" href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&amp;id=[% c.id | uri %]&editmode=text"><i class="fa-solid fa-pencil"></i> Edit with text editor</a>
492
                                                    <a class="dropdown-item" href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&amp;id=[% c.id | uri %]&editmode=text"><i class="fa-solid fa-pencil"></i> Edit with text editor</a>
488
                                                [% ELSE %]
493
                                                [% ELSE %]
489
                                                    <a class="dropdown-item" href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&amp;id=[% c.id | uri %]&editmode=wysiwyg"
494
                                                    <a class="dropdown-item" href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&amp;id=[% c.id | uri %]&editmode=wysiwyg"
490
- 

Return to bug 39860