@@ -25,6 +25,9 @@
|
||||
<li><a href="#" onclick="saveNote()">Save Note</a></li>
|
||||
{% if isAdmin is defined and isAdmin %}
|
||||
<li><a href='/reference-editor'>Reference Editor</a></li>
|
||||
{% if xferDB is defined and xferDB %}
|
||||
<li><a href='/xfer-database'>Transfer Database</a></li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<li><a href='#' onclick="openRef()">Open Reference</a></li>
|
||||
<li><a href='/template-editor'>Template Editor</a></li>
|
||||
|
||||
24
templates/default/transfer_progress.html.twig
Normal file
24
templates/default/transfer_progress.html.twig
Normal file
@@ -0,0 +1,24 @@
|
||||
{% 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 %}
|
||||
29
templates/default/transfer_summary.html.twig
Normal file
29
templates/default/transfer_summary.html.twig
Normal file
@@ -0,0 +1,29 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block body %}
|
||||
<div class="container mt-5 text-center">
|
||||
<h2 class="text-success">Database Transfer Complete!</h2>
|
||||
<p>Your data has been successfully moved to the new database, and the environment variables have been updated.</p>
|
||||
|
||||
{% if logs|length > 0 %}
|
||||
<div class="alert alert-warning text-start mx-auto" style="max-width: 600px;">
|
||||
<h5 class="alert-heading">Data Clean-up Notice</h5>
|
||||
<p>During the transfer, the following orphaned records were safely ignored to maintain database integrity:</p>
|
||||
<ul>
|
||||
{% for log in logs %}
|
||||
<li>{{ log }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="alert alert-success mx-auto" style="max-width: 600px;">
|
||||
Perfect transfer! No orphaned records were found.
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="mt-4">
|
||||
<p class="text-muted">You must log in again to establish a connection with the new database.</p>
|
||||
<a href="{{ path('app_logout') }}" class="btn btn-primary btn-lg">Acknowledge & Relogin</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user