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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc (-1 / +82 lines)
Lines 620-622 Link Here
620
        </fieldset>
620
        </fieldset>
621
    </form>
621
    </form>
622
[% END %]
622
[% END %]
623
- 
623
624
[% BLOCK modal_wrapper %]
625
    <div id="[% modal_id | raw %]" class="modal modal-lg audio-alert-action [% IF noblock %]noblock[% ELSE %]block[% END %]" [% UNLESS noblock %]data-bs-backdrop="static" data-bs-keyboard="false"[% END %]>
626
        <div class="modal-dialog">
627
            <div class="modal-content">
628
                <form class="modal-form" method="post" action="[% modal_action | uri %]" id="[% modal_id | raw %]-form">
629
                    [% INCLUDE 'csrf-token.inc' %]
630
631
                    <div class="modal-header" id="[% modal_id | raw %]-header"> [% modal_header_contents | raw %] </div>
632
                    <div class="modal-body" id="[% modal_id | raw %]-body"> [% content | raw %] </div>
633
                    <div class="modal-footer" id="[% modal_id | raw %]-footer">
634
                        [% footer_has_content = 0 %]
635
636
                        [% IF modal_confirm_text %]
637
                            <button
638
                                type="submit"
639
                                class="btn btn-default"
640
                                id="[% modal_id | raw %]-confirm"
641
                                [% IF modal_confirm_name %]name="[% modal_confirm_name | raw %]"[% END %]
642
                                [% IF modal_confirm_val %]value="[% modal_confirm_val | raw %]"[% END %]
643
                                [% IF modal_confirm_accesskey %]accesskey="[% modal_confirm_accesskey | raw %]"[% END %]
644
                            >
645
                                <i class="fa fa-check"></i>
646
                                [% modal_confirm_text | html %] [% IF modal_confirm_accesskey %]([% modal_confirm_accesskey | html %])[% END %]
647
                            </button>
648
                            [% footer_has_content = 1 %]
649
                        [% END %]
650
                        [% IF modal_custom_confirm %]
651
                            [% modal_custom_confirm | raw %]
652
                            [% footer_has_content = 1 %]
653
                        [% END %]
654
                        [% IF modal_print_text && modal_print_url %]
655
                            <button
656
                                type="button"
657
                                class="btn btn-default openWin"
658
                                data-bs-dismiss="modal"
659
                                id="[% modal_id | raw %]-print"
660
                                [% IF modal_print_name %]name="[% modal_print_name | raw %]"[% END %]
661
                                data-url="[% modal_print_url | uri %]"
662
                                [% IF modal_print_accesskey %]accesskey="[% modal_print_accesskey | raw %]"[% END %]
663
                            >
664
                                <i class="fa fa-print"></i>
665
                                [% modal_print_text | html %] [% IF modal_print_accesskey %]([% modal_print_accesskey | html %])[% END %]
666
                            </button>
667
                            [% footer_has_content = 1 %]
668
                        [% END %]
669
                        [% IF modal_custom_utility_button %]
670
                            [% modal_custom_utility_button | raw %]
671
                            [% footer_has_content = 1 %]
672
                        [% END %]
673
                        [% IF modal_deny_text %]
674
                            <button
675
                                [% IF modal_deny_action == "submit" %]type="submit"[% ELSE %]type="button"[% END %]
676
                                [% IF modal_deny_action == "dismiss" %]data-bs-dismiss="modal"[% END %]
677
                                class="btn btn-default"
678
                                id="[% modal_id | raw %]-deny"
679
                                [% IF modal_deny_name %]name="[% modal_deny_name | raw %]"[% END %]
680
                                [% IF modal_deny_val %]value="[% modal_deny_val | raw %]"[% END %]
681
                                [% IF modal_deny_accesskey %]accesskey="[% modal_deny_accesskey | raw %]"[% END %]
682
                            >
683
                                <i class="fa fa-times"></i>
684
                                [% modal_deny_text | html %] [% IF modal_deny_accesskey %]([% modal_deny_accesskey | html %])[% END %]
685
                            </button>
686
                            [% footer_has_content = 1 %]
687
                        [% END %]
688
                        [% IF modal_custom_deny %]
689
                            [% modal_custom_deny | raw %]
690
                            [% footer_has_content = 1 %]
691
                        [% END %]
692
                        [% IF modal_footer_append %]
693
                            [% modal_footer_append %]
694
                            [% footer_has_content = 1 %]
695
                        [% END %]
696
                        [% IF !footer_has_content %]
697
                            <button type="button" data-bs-dismiss="modal" class="btn btn-default" id="[% modal_id | raw %]-ok">OK</button>
698
                        [% END %]
699
                    </div>
700
                </form>
701
            </div>
702
        </div>
703
    </div>
704
[% END %]

Return to bug 38842