templates/base-login.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>{% block MetaTitle %}Welcome!{% endblock %}</title>
  6.         {% block stylesheets %}
  7.           {{ encore_entry_link_tags('admin') }}
  8.           <link rel="stylesheet" href="css/bootstrap.min.css">
  9.           <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css">
  10.           <link href="{{ asset('styles/admin.css') }}" rel="stylesheet"/>
  11.         {% endblock %}
  12.         
  13.     </head>
  14.     <body>
  15.         
  16.         {% block body %}{% endblock %}
  17.         {% block javascripts %}
  18.           {{ encore_entry_script_tags('admin') }}
  19.         <script>
  20.   
  21.           function handleButtonClick(event) {
  22.               event.preventDefault(); // Prevent the default form submission
  23.               // Get the submit button
  24.               const submitButton = document.getElementById('submitButton');
  25.               // Change the button text to "Processing..."
  26.               submitButton.textContent = 'Processing...';
  27.               // Disable the button to prevent multiple clicks
  28.               submitButton.disabled = true;
  29.               // Simulate a delay (e.g., waiting for an API response)
  30.               setTimeout(() => {
  31.               
  32.                 document.getElementById('submitForm').submit();
  33.               }, 2000); // Adjust the timeout as needed
  34.           }
  35.           </script>
  36.         {% endblock %}
  37.     </body>
  38. </html>