mirror of
https://github.com/magicbug/Cloudlog
synced 2026-08-13 17:49:35 -04:00
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.
18 lines
697 B
PHP
18 lines
697 B
PHP
<div class="container mt-4">
|
|
<h2>Admin Backup & Restore</h2>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<h4>Backup</h4>
|
|
<form method="get" action="<?php echo site_url('adminbackup/export'); ?>">
|
|
<button type="submit" class="btn btn-primary">Download Full Backup (ZIP)</button>
|
|
</form>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<h4>Restore</h4>
|
|
<form method="post" enctype="multipart/form-data" action="<?php echo site_url('adminbackup/import'); ?>">
|
|
<input type="file" name="backup_file" accept=".zip,application/zip" required>
|
|
<button type="submit" class="btn btn-success">Upload & Restore</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|