19 lines
526 B
HTML
19 lines
526 B
HTML
{% extends "layout.html" %}
|
|
|
|
{% block title %}
|
|
A Customized Confirmation UI
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h2><a href="https://htmx.org/examples/confirm/">A Customized Confirmation UI</a></h2>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11" defer></script>
|
|
<button hx-trigger='confirmed'
|
|
hx-get="/confirmed/"
|
|
_="on click
|
|
call Swal.fire({title: 'Confirm', text:'Do you want to continue?'})
|
|
if result.isConfirmed trigger confirmed">
|
|
Click Me
|
|
</button>
|
|
|
|
{% endblock %} |