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 628-630 Link Here
628
        </fieldset>
628
        </fieldset>
629
    </form>
629
    </form>
630
[% END %]
630
[% END %]
631
- 
631
632
[% BLOCK modal_wrapper %]
633
    <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 %]>
634
        <div class="modal-dialog">
635
            <div class="modal-content">
636
                <form class="modal-form" method="post" action="[% modal_action | $raw %]" id="[% modal_id | $raw %]-form">
637
                    [% INCLUDE 'csrf-token.inc' %]
638
639
                    <div class="modal-header" id="[% modal_id | $raw %]-header"> [% modal_header_contents | $raw %] </div>
640
                    <div class="modal-body" id="[% modal_id | $raw %]-body"> [% content | $raw %] </div>
641
                    <div class="modal-footer" id="[% modal_id | $raw %]-footer">
642
                        [% footer_has_content = 0 %]
643
644
                        [% IF modal_confirm_text %]
645
                            <button
646
                                type="submit"
647
                                class="btn btn-default confirm"
648
                                id="[% modal_id | $raw %]-confirm"
649
                                [% IF modal_confirm_name %]name="[% modal_confirm_name | $raw %]"[% END %]
650
                                [% IF modal_confirm_val %]value="[% modal_confirm_val | $raw %]"[% END %]
651
                                [% IF modal_confirm_accesskey %]accesskey="[% modal_confirm_accesskey | $raw %]"[% END %]
652
                            >
653
                                <i class="fa fa-check"></i>
654
                                [% modal_confirm_text | $raw %] [% IF modal_confirm_accesskey %]([% modal_confirm_accesskey | $raw %])[% END %]
655
                            </button>
656
                            [% footer_has_content = 1 %]
657
                        [% END %]
658
                        [% IF modal_custom_confirm %]
659
                            [% modal_custom_confirm | $raw %]
660
                            [% footer_has_content = 1 %]
661
                        [% END %]
662
                        [% IF modal_print_text && modal_print_url %]
663
                            <button
664
                                type="button"
665
                                class="btn btn-default openWin"
666
                                data-bs-dismiss="modal"
667
                                id="[% modal_id | $raw %]-print"
668
                                [% IF modal_print_name %]name="[% modal_print_name | $raw %]"[% END %]
669
                                data-url="[% modal_print_url | $raw %]"
670
                                [% IF modal_print_accesskey %]accesskey="[% modal_print_accesskey | $raw %]"[% END %]
671
                            >
672
                                <i class="fa fa-print"></i>
673
                                [% modal_print_text | $raw %] [% IF modal_print_accesskey %]([% modal_print_accesskey | $raw %])[% END %]
674
                            </button>
675
                            [% footer_has_content = 1 %]
676
                        [% END %]
677
                        [% IF modal_custom_utility_button %]
678
                            [% modal_custom_utility_button | $raw %]
679
                            [% footer_has_content = 1 %]
680
                        [% END %]
681
                        [% IF modal_deny_text %]
682
                            <button
683
                                [% IF modal_deny_action == "submit" %]type="submit"[% ELSE %]type="button"[% END %]
684
                                [% IF modal_deny_action == "dismiss" %]data-bs-dismiss="modal"[% END %]
685
                                class="btn btn-default deny"
686
                                id="[% modal_id | $raw %]-deny"
687
                                [% IF modal_deny_name %]name="[% modal_deny_name | $raw %]"[% END %]
688
                                [% IF modal_deny_val %]value="[% modal_deny_val | $raw %]"[% END %]
689
                                [% IF modal_deny_accesskey %]accesskey="[% modal_deny_accesskey | $raw %]"[% END %]
690
                            >
691
                                <i class="fa fa-times"></i>
692
                                [% modal_deny_text | $raw %] [% IF modal_deny_accesskey %]([% modal_deny_accesskey | $raw %])[% END %]
693
                            </button>
694
                            [% footer_has_content = 1 %]
695
                        [% END %]
696
                        [% IF modal_custom_deny %]
697
                            [% modal_custom_deny | $raw %]
698
                            [% footer_has_content = 1 %]
699
                        [% END %]
700
                        [% IF modal_footer_append %]
701
                            [% modal_footer_append | $raw %]
702
                            [% footer_has_content = 1 %]
703
                        [% END %]
704
                        [% IF !footer_has_content %]
705
                            <button type="button" data-bs-dismiss="modal" class="btn btn-default" id="[% modal_id | $raw %]-ok">OK</button>
706
                        [% END %]
707
                    </div>
708
                </form>
709
            </div>
710
        </div>
711
    </div>
712
[% END %]

Return to bug 38842