21 lines
506 B
HTML
21 lines
506 B
HTML
{% macro ConfirmationButton(
|
|
btn_text,
|
|
action,
|
|
btn_icon=None,
|
|
btn_class=None,
|
|
confirm_msg="Are you sure?",
|
|
confirm_btn="Confirm",
|
|
cancel_btn="Cancel")
|
|
-%}
|
|
<confirmation-popover
|
|
btn_text='{{ btn_text }}'
|
|
btn_icon='{{ btn_icon }}'
|
|
btn_class='{{ btn_class }}'
|
|
action='{{ action }}'
|
|
csrf_token='{{ csrf_token() }}'
|
|
confirm_msg='{{ confirm_msg }}'
|
|
confirm_btn_text='{{ confirm_btn }}'
|
|
cancel_btn_text='{{ cancel_btn }}'>
|
|
</confirmation-popover>
|
|
{%- endmacro %}
|