{% extends 'base.html.twig' %}

{% block body %}
<div class="container mt-5 text-center">
    <h2>Transferring Database...</h2>
    <p>Processing: <strong>{{ current }}</strong></p>
    
    <div class="progress mb-3" style="height: 30px;">
        <div class="progress-bar progress-bar-striped progress-bar-animated" 
             role="progressbar" style="width: {{ progress }}%;">
             {{ progress }}%
        </div>
    </div>

    <p>Please do not close this window.</p>
</div>

<script>
    // Automatically move to the next step after a short delay
    setTimeout(() => {
        window.location.href = "{{ path('app_admin_transfer_db', {step: next_step}) }}";
    }, 500);
</script>
{% endblock %}