cloudlog/application/views/backup/import_progress.php
Peter Goodhall 79cd4b4397 Add user-level backup and restore functionality
Introduces user-facing JSON+ZIP export and import for stations, logbooks, and QSOs, including preview and progress views. Updates backup controller to allow all authenticated operators (level 2+) and replaces legacy backup card with new workflow in the UI. Adds new views for import preview and progress, supporting selective import and conflict handling.
2025-11-24 17:30:40 +00:00

21 lines
No EOL
791 B
PHP

<div class="alert alert-info mb-0">
<strong>Import Progress</strong>
<ul class="mb-2">
<li>Stations imported: <?php echo $stations; ?> / <?php echo $total_stations; ?></li>
<li>Logbooks imported: <?php echo $logbooks; ?> / <?php echo $total_logbooks; ?></li>
<li>QSOs imported: <?php echo $qsos; ?> / <?php echo $total_qsos; ?></li>
</ul>
<?php if (!empty($step)): ?>
<div>Current step: <?php echo htmlspecialchars($step); ?></div>
<?php endif; ?>
<?php if (!empty($conflicts)): ?>
<div class="mt-2">
<strong>Conflicts / Notices:</strong>
<ul class="mb-0">
<?php foreach ($conflicts as $conflict): ?>
<li><?php echo htmlspecialchars($conflict); ?></li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
</div>