Files
WYGIWYH/app/templates/export_app/pages/index.html
T
Herculino Trotta 8d6b86b7ca feat(export): export and restore on the page, with progress and messages
The export and restore forms now sit on the Export and Restore page
instead of an offcanvas. Exporting shows a progress line and a toast
when the download starts; restoring splits ZIP and CSV uploads into
tabs and shows errors in the form.

- An empty export warns instead of downloading the message as a file
- Export errors show a message instead of a stuck spinner
- The download link is kept long enough for Safari to save the file
- Non-superusers get a 403 instead of a redirect loop with the login
- The asset classes CSV can be uploaded on its own
- Drop the export form's unknown investment_classes layout field
2026-11-17 13:01:25 -03:00

25 lines
945 B
HTML

{% extends "layouts/base.html" %}
{% load i18n %}
{% block title %}{% translate 'Export and Restore' %}{% endblock %}
{% block content %}
<div class="container">
<div class="text-3xl font-bold font-mono w-full mb-3">{% translate 'Export and Restore' %}</div>
<div class="grid gap-4 lg:grid-cols-2 items-start">
<div class="card bg-base-100 shadow-xl">
<div class="card-body gap-4 p-6 sm:p-8">
<h2 class="card-title"><i class="fa-solid fa-download"></i>{% translate 'Export' %}</h2>
{% include "export_app/fragments/export.html" %}
</div>
</div>
<div class="card bg-base-100 shadow-xl">
<div class="card-body gap-4 p-6 sm:p-8">
<h2 class="card-title"><i class="fa-solid fa-upload"></i>{% translate 'Restore' %}</h2>
{% include "export_app/fragments/restore.html" with form=restore_form %}
</div>
</div>
</div>
</div>
{% endblock %}