<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{% block MetaTitle %}Welcome!{% endblock %}</title>
{% block stylesheets %}
{{ encore_entry_link_tags('admin') }}
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css">
<link href="{{ asset('styles/admin.css') }}" rel="stylesheet"/>
{% endblock %}
</head>
<body>
{% block body %}{% endblock %}
{% block javascripts %}
{{ encore_entry_script_tags('admin') }}
<script>
function handleButtonClick(event) {
event.preventDefault(); // Prevent the default form submission
// Get the submit button
const submitButton = document.getElementById('submitButton');
// Change the button text to "Processing..."
submitButton.textContent = 'Processing...';
// Disable the button to prevent multiple clicks
submitButton.disabled = true;
// Simulate a delay (e.g., waiting for an API response)
setTimeout(() => {
document.getElementById('submitForm').submit();
}, 2000); // Adjust the timeout as needed
}
</script>
{% endblock %}
</body>
</html>