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